Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Maxime de Visscher / Maxime de Visscher ()
Created: 01/17/2017
Components: File Management
Versions: 2016
Failure Type: Unspecified
Found In Build/Fixed In Build: 2016,0,03,300466 / NA
Priority/Frequency: Normal /
Locale/System: / Linux
Vote Count: 0
Problem Description:
On Linux/Ubuntu when you have a urlrewrite condition, it affect expandPath()
Steps to Reproduce:
add following line in your htaccess :
RewriteCond %{REQUEST_URI} !^.*/(ai-cache)
RewriteRule ^(.*\.(gif|jpg|png))$ ./miscellaneous/adaptive-images.cfm?img=$1&%{QUERY_STRING} [NC,L]
coldfusion testing code:
#expandPath('files/')#
<hr>
#expandPath('files/myimage.jpg')#
Actual Result:
/var/www/files/
--------------
/opt/coldfusion2016/cfusion/bin/redirect:/miscellaneous/adaptive-images.cfm
Expected Result:
/var/www/files/
--------------
/opt/coldfusion2016/myimage.jpg
Any Workarounds:
Attachments:
- July 25, 2017 00:00:00: .htaccess
- July 25, 2017 00:00:00: 4198267.cfm
Comments: