crnr / timthumb

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

Relative paths finding #304

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Put timthumb.php on 
C:\Users\Kyotoweb\Documents\Workshop\MinuteSchool\Integration\ (accesible by 
http://127.0.0.1/MinuteSchool/Integration/timthumb.php). index.html is on the 
same directory as timthumb.php. Try to include an image with 
timthumb.php?src=images/lorempixum/logo_epitech.png a source on index.html 
(images/ beeing at the same level as the two previously mentionned file).

What is the expected output? What do you see instead?
It's supposed to work.

What version of the product are you using? On what operating system?
Windows, r197

Please provide any additional information below.
Fixed by replacing the l.869 from :
if (strstr($_SERVER['SCRIPT_FILENAME'],':')) {
to :
if (!strstr($_SERVER['SCRIPT_FILENAME'],':')) {

Original issue reported on code.google.com by am...@mouafik.fr on 8 Dec 2011 at 10:38

GoogleCodeExporter commented 8 years ago

Original comment by BinaryMoon on 3 Oct 2013 at 7:08