Fix Timthumb Script When Using a URL That Contains Tildes (~)

/ Published in: PHP
Save to your folder(s)

If you are using the [TimThumb]( "TimThumb on Google Code") script with a URL the contains tildes (~) and images are breaking, here is the fix...

I did not create this snippet but found it extremely useful so I thought I'd make it available here. The URL listed is not mine but where I found it. Enjoy :-)

At line 209 (as of 01-29-13) in the script you will find the following line of code:

`$this->src = $this->param('src');`

Replace that line with the following snippet:


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.