pailoro / timthumb

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

how can I ADD "?" like : photo.jpg?&h=300&w=450 insted of photo.jpg&h=300&w=450 #457

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I SEE this error :

A TimThumb error has occured

The following error(s) occured:
An error occured fetching image.

Query String : 
src=http://m.domain.com/uploads/2013/07/photo180x134.jpg&h=300&w=450
TimThumb version : 2.8.11

And no image is showing . 

but when I add "?" to the above url befor [&h=300&w=450] in browser url like 
this:

http://m.domain.com/uploads/2013/07/photo180x134.jpg?&h=300&w=450

it worke and show photo and not show above erorr.

NOW MY Question is this :

HOW can I add this "?" to the source of timthumb php .

Original issue reported on code.google.com by M.S.Naz...@mihanmail.ir on 11 Jul 2013 at 3:50

GoogleCodeExporter commented 8 years ago
The error is caused because you have the url already in a search string, like

http://SITEURL/timthumb.php?src=URL&w=450&h=300

So the '?' sign should be before the 'src' parameter, not after the filename 
value.

Original comment by gianluig...@gmail.com on 11 Aug 2013 at 1:39

GoogleCodeExporter commented 8 years ago
make sure to urlencode the query string properties also

Original comment by BinaryMoon on 27 Sep 2013 at 8:51