oseawey / timthumb

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

Patch for /trunk/timthumb.php #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Changed the URL Validation Pattern because the old one was not validating 
legitimate urls such as: 
http://a1061.g.akamai.net/7/1061/5412/home/www.walgreens.com/dbimagecache/603531
18000_450x450_a.jpg

This new pattern is RFC 3987 compliant and taken from:
http://stackoverflow.com/questions/161738/what-is-the-best-regular-expression-to
-check-if-a-string-is-a-valid-url

Original issue reported on code.google.com by starkf...@gmail.com on 7 Mar 2011 at 5:41

Attachments:

GoogleCodeExporter commented 9 years ago
This does not work, sorry for posting invalid code...

Original comment by starkf...@gmail.com on 7 Mar 2011 at 10:48

GoogleCodeExporter commented 9 years ago
I've tweaked the url validation which should improve this situation

Original comment by BinaryMoon on 21 Apr 2011 at 10:09