1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 08:06:38 +02:00

Check added to thumb.php in case of UTF8-BOM in e107_config.php or any other output which could corrupt images.

This commit is contained in:
Cameron
2016-06-02 08:38:39 -07:00
parent cd8ea61bd9
commit 998f2f592b
3 changed files with 6 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ class e_thumbpage
{
private $_debug = false;
private $_cache = true;
private $_cache = false;
/**
* Page request
@@ -92,6 +92,7 @@ class e_thumbpage
$mySQLprefix = '';
// Config
include($self.'/e107_config.php');
// support early include feature
@@ -100,6 +101,8 @@ class e_thumbpage
require_once(realpath(dirname(__FILE__).'/'.$CLASS2_INCLUDE));
}
ob_clean(); // Precaution - clearout utf-8 BOM or any other garbage in e107_config.php
$tmp = $self.'/'.$HANDLERS_DIRECTORY;
//Core functions - now API independent