http_static: squash subsequent forward slashes in request target path 82/42382/6
authorSemir Sionek <ssionek@cisco.com>
Fri, 21 Feb 2025 14:09:29 +0000 (09:09 -0500)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 25 Feb 2025 18:03:33 +0000 (18:03 +0000)
commit1cdebd8ca18bdf38af95047b1e9daf520e03030c
treef5f9dcaab67c1e0bd1f54d588abad022e5e8e1fd
parent58b6c4e6bdfba7c2a652e121c1c4e907df685780
http_static: squash subsequent forward slashes in request target path

In the file handler, squash groups of forward slashes during path
sanitation to minify the risk of running out of memory.

Type: fix

Change-Id: Ic29d691f876b891ff588157851334162b4e3c5e3
Signed-off-by: Semir Sionek <ssionek@cisco.com>
extras/hs-test/http_test.go
src/plugins/http/http.h
src/plugins/http/http_plugin.rst
src/plugins/http_static/static_server.c