REQUEST_FILENAME
variable is not getting correctly set
#2853
Labels
3.x
Related to ModSecurity version 3.x
Describe the bug
REQUEST_FILENAME
variable is not getting correctly set inTransaction::processURI()
To Reproduce
Steps to reproduce the behavior:
Transaction
variable, define in transaction.hWe are get the value as
https://fruits.com/mango/apple.txt
, instead of/mango/apple.txt
.Expected behavior
REQUEST_FILENAME
variable to be the relative path of the file (without domain name). This can be seen in the definition of the variable as per docs - https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual-(v2.x)#request_filename.Additional context
Solving this issue should be pretty simple, we do later parse the URI to remove the domain information, we should use the parsed URI. Happy to put up the fix, if this indeed is a bug.
The text was updated successfully, but these errors were encountered: