rifanece / timthumb

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

Problem with relative paths on windows #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Place timthumb.php on root
2. Upload a file to images/ folder
3. Run timthumb with src=images/myfile.jpg

What is the expected output? What do you see instead?

Expected to work.

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

Windows , timthumb r48

Please provide any additional information below.

This can be fixed by adding '.' to the get_document_root $path array, like
this:

$paths = array( '.', '..', '../..', '../../..', '../../../..' );

Original issue reported on code.google.com by spamprotection on 5 Mar 2009 at 8:31

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by BinaryMoon on 14 Mar 2009 at 9:32