[Plugin: Options Framework] of_sanitize_upload fails with query strings
-
I’m using options framework on a site with dynamic image resizing (via the timthumb library). One key effect of that is a query string added to image URLs. E.g., http://example.com/my_image.png?w=300&h=9999&zc=3&s=0&a=m&q=89
The
of_sanitize_uploadfunction removes these URLs. A simple fix, though, would allow the URL to pass. options-sanitize.php, line 67, change:$filetype = wp_check_filetype($input);to:
$filetype = wp_check_filetype(parse_url($input, PHP_URL_PATH));
The topic ‘[Plugin: Options Framework] of_sanitize_upload fails with query strings’ is closed to new replies.