mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01: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:
parent
cd8ea61bd9
commit
998f2f592b
@ -405,7 +405,7 @@ e107::getSingleton('e107_traffic'); // We start traffic counting ASAP
|
||||
|
||||
//DEPRECATED, BC, $e107->sql caught by __get()
|
||||
$sql = e107::getDb(); //TODO - find & replace $sql, $e107->sql
|
||||
$sql->db_SetErrorReporting(FALSE);
|
||||
$sql->db_SetErrorReporting(false);
|
||||
|
||||
$sql->db_Mark_Time('SQL Connect');
|
||||
$merror=$sql->db_Connect($mySQLserver, $mySQLuser, $mySQLpassword, $mySQLdefaultdb);
|
||||
|
@ -1639,7 +1639,7 @@ class e_db_mysql
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* @param unknown $mode
|
||||
* @param bool $mode
|
||||
* @desc Enter description here...
|
||||
* @access private
|
||||
*/
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user