WordPress.org

Ready to get started?Download WordPress

Forums

Timthumb Vulnerability Scanner
[resolved] Bug - rewrites old settings (4 posts)

  1. novakpeter
    Member
    Posted 2 years ago #

    Is this plugin made to preserve settings from previous version of timthumb? I updated and the part

    $ALLOWED_SITES = array (
    ...

    was rewritten by defaults, so all my pictures were not visible on my site, because some external sites were suddenly not visible...

    http://wordpress.org/extend/plugins/timthumb-vulnerability-scanner/

  2. Peter Butler
    Member
    Plugin Author

    Posted 2 years ago #

    Unfortunately, at this point, the plugin isn't smart enough to maintain settings, only to update the file to the latest version, so you'll have to reset these defaults yourself.

    Maintaining them shouldnt be impossible, however - I'll look into the feasibility of not overwriting them.

  3. Peter Butler
    Member
    Plugin Author

    Posted 2 years ago #

    I almost forgot - For the last few versions (I dont know since when off the top of my head), timthumb has allowed for a config file, named timthumb-config.php, and stored in the same directory as your timthumb instance, to override default timthumb settings.
    By using this, you can maintain any settings you'd like, without having to worry about updates overwriting them.

    Unfortunately, I can't really find any documentation or examples right now - but here are 2 things to get you started:

    http://code.google.com/p/timthumb/issues/detail?id=318

    http://timthumb.googlecode.com/svn/trunk/timthumb.php (start reading at "--- TimThumb CONFIGURATION ---"

    Hope that helps!

  4. novakpeter
    Member
    Posted 2 years ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic