crnr / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Can't process images with '+' in filename #331

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create and upload image with '+' in filename i.e. 'my+image.jpg'
2.
3.

What is the expected output? What do you see instead?
Image should load however it displays image can't be found error

What version of the product are you using? On what operating system?
TimThumb 2.8.5
Linux/Apache version 2.2.21
PHP version 5.2.17 

Please provide any additional information below.

Original issue reported on code.google.com by m...@injectdigital.com on 31 Jan 2012 at 12:25

GoogleCodeExporter commented 8 years ago
For example (example only, url's are fictitious)
Broken link
mysite.net/functions/theme/thumb.php?src=mysite.net/images/Size+Bamboo_3.jpg&w=2
00&h=150&zc=1&a=c

Working link
mysite.net/images/Size+Bamboo_3.jpg

Original comment by m...@injectdigital.com on 31 Jan 2012 at 12:29

GoogleCodeExporter commented 8 years ago
Browser interprets '+' as ' ' (space). Try to change your '+' in '%2B', must 
work!

Original comment by spartaku...@gmail.com on 31 Jan 2012 at 3:23

GoogleCodeExporter commented 8 years ago
If it was the browser then surely this wouldn't work either? 
mysite.net/images/Size+Bamboo_3.jpg

Original comment by m...@injectdigital.com on 31 Jan 2012 at 10:28

GoogleCodeExporter commented 8 years ago
spartakusmd is right - the url in a query string needs to be encoded (using 
urlencode($src) in php for example).

Original comment by BinaryMoon on 7 Feb 2012 at 1:53

GoogleCodeExporter commented 8 years ago

Original comment by BinaryMoon on 20 Feb 2012 at 12:52