Commit 912413bf62da1ea76b60815104d3ae7d6060e365

Authored by Cédric RICARD
1 parent c79debb6

Fix bug with url encoding in HTTP server.

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
calexium_lib/web/CXM_multihost_http_server.anubis
... ... @@ -1573,7 +1573,7 @@ define Result(Error,HTTP_RequestLine)
1573 1573 {
1574 1574 error(msg) then error(msg),
1575 1575 ok(request_type) then
1576   - ok(request_line(request_type,uri,read_www_url_encoded_web_args(query_string,0)))
  1576 + ok(request_line(request_type, web_to_ascii(uri, 0, []), read_www_url_encoded_web_args(query_string,0)))
1577 1577 }
1578 1578 }
1579 1579 }
... ... @@ -2242,7 +2242,7 @@ define One
2242 2242 failure then log_journal_msg(desc,"No MIME type found for '"+uri+"'.\n"),
2243 2243 success(mime_type) then
2244 2244 with path = site_directory(desc)+"/public"+uri,
2245   - if (Maybe(RStream))connect to file path is
  2245 + if (Maybe(RStream))file(path, read) is
2246 2246 {
2247 2247 failure then log_journal_msg(desc,"Cannot find file '"+path+"'.\n"),
2248 2248 success(f) then with size = file_size(f),
... ...