For Nino connector, ensured that environment variables are percent-encoded in meta variables.

This commit is contained in:
2013-12-02 10:26:23 +01:00
parent 20367851cc
commit 4f15745647
3 changed files with 6 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
<option warning="true" full_class_checking="true" is_attached_by_default="true" void_safety="all"> <option warning="true" full_class_checking="true" is_attached_by_default="true" void_safety="all">
</option> </option>
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/> <library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
<library name="encoder" location="../../../../text/encoder/encoder-safe.ecf"/>
<library name="ewsgi" location="..\..\ewsgi-safe.ecf" readonly="false"/> <library name="ewsgi" location="..\..\ewsgi-safe.ecf" readonly="false"/>
<library name="http" location="../../../../network/protocol/http/http-safe.ecf"/> <library name="http" location="../../../../network/protocol/http/http-safe.ecf"/>
<library name="nino" location="../../../../../contrib/library/network/server/nino/nino-safe.ecf" readonly="false"> <library name="nino" location="../../../../../contrib/library/network/server/nino/nino-safe.ecf" readonly="false">

View File

@@ -10,6 +10,7 @@
<option warning="true" full_class_checking="true"> <option warning="true" full_class_checking="true">
</option> </option>
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/> <library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
<library name="encoder" location="../../../../text/encoder/encoder.ecf"/>
<library name="ewsgi" location="..\..\ewsgi.ecf" readonly="false"/> <library name="ewsgi" location="..\..\ewsgi.ecf" readonly="false"/>
<library name="http" location="../../../../network/protocol/http/http.ecf"/> <library name="http" location="../../../../network/protocol/http/http.ecf"/>
<library name="nino" location="../../../../../contrib/library/network/server/nino/nino.ecf" readonly="false"> <library name="nino" location="../../../../../contrib/library/network/server/nino/nino.ecf" readonly="false">

View File

@@ -69,16 +69,18 @@ feature -- Request processing
vn: STRING vn: STRING
e: EXECUTION_ENVIRONMENT e: EXECUTION_ENVIRONMENT
enc: URL_ENCODER
do do
l_request_uri := a_handler.uri l_request_uri := a_handler.uri
l_headers_map := a_handler.request_header_map l_headers_map := a_handler.request_header_map
create e create e
if attached e.starting_environment_variables as vars then if attached e.starting_environment as vars then
create enc
create env.make_equal (vars.count) create env.make_equal (vars.count)
across across
vars as c vars as c
loop loop
env.force (c.item.to_string_8, c.key) env.force (enc.encoded_string (c.item), enc.encoded_string (c.key))
end end
else else
create env.make (0) create env.make (0)