/[Apache-SVN]
ViewVC logotype

Revision 1908341


Jump to revision: Previous Next
Author: rpluem
Date: Mon Mar 13 10:24:30 2023 UTC (13 months, 3 weeks ago)
Changed paths: 13
Log Message:
Do not double encode encoded slashes

In case that AllowEncodedSlashes is set to NoDecode do not double encode
encoded slashes in the URL sent by the reverse proxy to the backend.

* include/ap_mmn.h: Document the addition of ap_proxy_canonenc_ex to the API.

* modules/proxy/mod_proxy.h: Declare ap_proxy_canonenc_ex and define flag
      values.

* modules/proxy/proxy_util.c: Implement ap_proxy_canonenc_ex by modifying
      ap_proxy_canonenc accordingly and reimplement ap_proxy_canonenc to
      use ap_proxy_canonenc_ex with the appropriate flag.

* modules/http2/mod_proxy_http2.c, modules/proxy/mod_proxy_*.c: Set the
      correct flag based on the AllowEncodedSlashes configuration and use
      ap_proxy_canonenc_ex instead of ap_proxy_canonenc.


Changed paths

Path Details
Directoryhttpd/httpd/trunk/changes-entries/nodoubleencodeencodedslash.txt added
Directoryhttpd/httpd/trunk/include/ap_mmn.h modified , text changed
Directoryhttpd/httpd/trunk/modules/http2/mod_proxy_http2.c modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy.h modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy_ajp.c modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy_http.c modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy_scgi.c modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy_uwsgi.c modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy_wstunnel.c modified , text changed
Directoryhttpd/httpd/trunk/modules/proxy/proxy_util.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26