tkale86 / timthumb

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

Seems to be problem in a domain name containing a special char #286

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My domain (www.woolcan.net/w+/) create a problem with timthumb.
It resolve the url for the thum changing the + char with an empty char.
If I change manually the url replacing the + char with the url encding 
equivalent (%2B) all works fine.

I'd love to make the string replace dynamically but I don't know exactly what 
line of code is necessary to change.
Can you help me?

thanks

Original issue reported on code.google.com by f.ceccar...@numidia.it on 12 Nov 2011 at 2:44

GoogleCodeExporter commented 9 years ago
you need to urlencode the src parameter in order for it to work consistently. I 
suspect this will solve the issue for you. Since + in an encoded url can mean a 
space there could be confusion when it gets to the timthumb so you need to sort 
it out before it gets that far.

Original comment by BinaryMoon on 24 Nov 2011 at 11:09