aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_server/httpd_file.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2011-11-01 18:42:42 +0100
committerErlang/OTP <[email protected]>2011-11-01 18:42:42 +0100
commit65db6eb562b0376dd29fc60e9378d7b3b8ac386b (patch)
tree26c5761f96eabdd7f4f1ec83e5edb7853b180db6 /lib/inets/src/http_server/httpd_file.erl
parentf8b20b4a995727f0339074d23a0fae50712683d2 (diff)
parentf8f0496c1b85169f6e72b6f875c521f09a471bbf (diff)
downloadotp-65db6eb562b0376dd29fc60e9378d7b3b8ac386b.tar.gz
otp-65db6eb562b0376dd29fc60e9378d7b3b8ac386b.tar.bz2
otp-65db6eb562b0376dd29fc60e9378d7b3b8ac386b.zip
Merge branch 'bmk/inets/inets536_integration' into maint-r13
* bmk/inets/inets536_integration: [httpd] GET request with malformed header date caused server crash (non-fatal) with no reply to client. Will now result in a reply with status code 400. OTP-9674 Added versions 5.2, 5.1.3 and 5.1.2 again. OTP-9655 Uncommented ipv6 test cases. OTP-9655 Fixed HTML encode. First *try* to hex decode uri, and then do the actual html encode. OTP-9655 Skip catching hex decode failure. OTP-9655 Fixed hex-decoding. OTP-9655 Problems with proxy test cases. OTP-9655 Added release notes, appup and correct version. OTP-9655 The XSS prevention methods used was confused if the URL was encoded (hex-encoded). OTP-9655
Diffstat (limited to 'lib/inets/src/http_server/httpd_file.erl')
-rw-r--r--lib/inets/src/http_server/httpd_file.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/src/http_server/httpd_file.erl b/lib/inets/src/http_server/httpd_file.erl
index fbe713ecd1..4490a6356a 100644
--- a/lib/inets/src/http_server/httpd_file.erl
+++ b/lib/inets/src/http_server/httpd_file.erl
@@ -39,8 +39,8 @@ handle_error(_Reason, Op, _ModData, Path) ->
handle_error(500, Op, none, Path, "").
handle_error(StatusCode, Op, none, Path, Reason) ->
- {StatusCode, none, ?NICE("Can't " ++ Op ++ Path ++ Reason)};
+ {StatusCode, none, ?NICE("Can't " ++ Op ++ " " ++ Path ++ Reason)};
handle_error(StatusCode, Op, ModData, Path, Reason) ->
{StatusCode, ModData#mod.request_uri,
- ?NICE("Can't " ++ Op ++ Path ++ Reason)}.
+ ?NICE("Can't " ++ Op ++ " " ++ Path ++ Reason)}.