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

  1. novakpeter
    Posted 4 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...


  2. Peter Butler
    Plugin Author

    Posted 4 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
    Plugin Author

    Posted 4 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://timthumb.googlecode.com/svn/trunk/timthumb.php (start reading at "--- TimThumb CONFIGURATION ---"

    Hope that helps!

  4. novakpeter
    Posted 4 years ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Timthumb Vulnerability Scanner
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic