1.3.1 timthumb bug re-implemented?

A forum for Bolt related questions / issues

Re: 1.3.1 timthumb bug re-implemented?

Postby ningus » Sun Dec 08, 2013 2:54 pm

Oops, false alarm! It works actually.
My fault was, I left the $_REQUEST script in.
:D
ningus
 
Posts: 34
Joined: Fri Jun 21, 2013 4:05 pm
Location: Europe

Re: 1.3.1 timthumb bug re-implemented?

Postby Bob » Sun Dec 08, 2013 4:37 pm

Oh, sorry about that. I wasn't very clear.. You should remove the print_r() part in timthumb again. So the top of timthumb.php should look like this:

Code: Select all
<?php
/**
 * TimThumb by Ben Gillbanks and Mark Maunder
 * Based on work done by Tim McDaniels and Darren Hoyt
 * http://code.google.com/p/timthumb/
 *
 * GNU General Public License, version 2
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 *
 * Examples and documentation available on the project homepage
 * http://www.binarymoon.co.uk/projects/timthumb/
 *
 * $Rev$
 */

/**
 * Bolt specific code: turn /100x200f/foo.jpg into $_GET parameters timthumb understands.
 *
 * options for zoomcrop:
 * http://www.binarymoon.co.uk/demo/timthumb-zoom-crop/
 * 'f' ('fit') -> zc=0
 * 'c' (crop, default) -> zc=1
 * 'b' (borders) -> zc=2
 * 'r' (resize) -> zc=3
 */

// @see: http://stackoverflow.com/questions/6483912/php-serverredirect-url-vs-serverrequest-uri
if (!empty($_SERVER['REDIRECT_URL']) && (strpos($_SERVER['REDIRECT_URL'], 'timthumb.php') === false)) {
    $requesturi = $_SERVER['REDIRECT_URL'];
} else {
    $requesturi = $_SERVER['REQUEST_URI'];
}

Bob
Lead Developer
 
Posts: 1374
Joined: Tue Nov 20, 2007 11:16 pm

Re: 1.3.1 timthumb bug re-implemented?

Postby Bob » Sun Dec 08, 2013 4:38 pm

Ah, and in turn I missed your second post..

Anyhow, thanks for testing, and I'm glad it works!!
Bob
Lead Developer
 
Posts: 1374
Joined: Tue Nov 20, 2007 11:16 pm

Previous

Return to Bolt Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron