WordPress.org

Ready to get started?Download WordPress

Forums

Options Framework
of_sanitize_upload fails with query strings (1 post)

  1. Jonathan Brinley
    Member
    Posted 2 years ago #

    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_upload function 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));

    http://wordpress.org/extend/plugins/options-framework/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.