Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with relative paths on windows #21

Closed
GoogleCodeExporter opened this issue Feb 1, 2016 · 1 comment
Closed

Problem with relative paths on windows #21

GoogleCodeExporter opened this issue Feb 1, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant