diff options
author | Micael Karlberg <[email protected]> | 2011-09-19 19:31:42 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-09-19 19:31:42 +0200 |
commit | 368449d2316b0f0f7c0dce55a9dd47c3acadb76d (patch) | |
tree | 5b38a054ca7918f486992aef39ecf11305f021e2 /lib/inets/src/http_server/httpd_request.erl | |
parent | 7c730a573a7e239f41bc619b024a675667767428 (diff) | |
parent | 1fd7edb98877afdf8e044ee8f4f3c1f9fca371ce (diff) | |
download | otp-368449d2316b0f0f7c0dce55a9dd47c3acadb76d.tar.gz otp-368449d2316b0f0f7c0dce55a9dd47c3acadb76d.tar.bz2 otp-368449d2316b0f0f7c0dce55a9dd47c3acadb76d.zip |
Merge branch 'bmk/inets/httpd/windows_dir_traversal/OTP-OTP-9561' into bmk/inets/inets571_integration
Conflicts:
lib/inets/doc/src/notes.xml
Diffstat (limited to 'lib/inets/src/http_server/httpd_request.erl')
-rw-r--r-- | lib/inets/src/http_server/httpd_request.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/src/http_server/httpd_request.erl b/lib/inets/src/http_server/httpd_request.erl index 7084d9824a..90f8bdd912 100644 --- a/lib/inets/src/http_server/httpd_request.erl +++ b/lib/inets/src/http_server/httpd_request.erl @@ -312,8 +312,8 @@ validate_uri(RequestURI) -> {'EXIT',_Reason} -> {error, {bad_request, {malformed_syntax, RequestURI}}}; _ -> - Path = format_request_uri(UriNoQueryNoHex), - Path2=[X||X<-string:tokens(Path, "/"),X=/="."], %% OTP-5938 + Path = format_request_uri(UriNoQueryNoHex), + Path2 = [X||X<-string:tokens(Path, "/\\"),X=/="."], validate_path( Path2,0, RequestURI) end. |