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:
@@ -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
|
||||
|
Reference in New Issue
Block a user