mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 09:04: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:
@@ -405,7 +405,7 @@ e107::getSingleton('e107_traffic'); // We start traffic counting ASAP
|
|||||||
|
|
||||||
//DEPRECATED, BC, $e107->sql caught by __get()
|
//DEPRECATED, BC, $e107->sql caught by __get()
|
||||||
$sql = e107::getDb(); //TODO - find & replace $sql, $e107->sql
|
$sql = e107::getDb(); //TODO - find & replace $sql, $e107->sql
|
||||||
$sql->db_SetErrorReporting(FALSE);
|
$sql->db_SetErrorReporting(false);
|
||||||
|
|
||||||
$sql->db_Mark_Time('SQL Connect');
|
$sql->db_Mark_Time('SQL Connect');
|
||||||
$merror=$sql->db_Connect($mySQLserver, $mySQLuser, $mySQLpassword, $mySQLdefaultdb);
|
$merror=$sql->db_Connect($mySQLserver, $mySQLuser, $mySQLpassword, $mySQLdefaultdb);
|
||||||
|
@@ -1639,7 +1639,7 @@ class e_db_mysql
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
* @param unknown $mode
|
* @param bool $mode
|
||||||
* @desc Enter description here...
|
* @desc Enter description here...
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
|
@@ -49,7 +49,7 @@ class e_thumbpage
|
|||||||
{
|
{
|
||||||
private $_debug = false;
|
private $_debug = false;
|
||||||
|
|
||||||
private $_cache = true;
|
private $_cache = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Page request
|
* Page request
|
||||||
@@ -92,6 +92,7 @@ class e_thumbpage
|
|||||||
$mySQLprefix = '';
|
$mySQLprefix = '';
|
||||||
|
|
||||||
// Config
|
// Config
|
||||||
|
|
||||||
include($self.'/e107_config.php');
|
include($self.'/e107_config.php');
|
||||||
|
|
||||||
// support early include feature
|
// support early include feature
|
||||||
@@ -100,6 +101,8 @@ class e_thumbpage
|
|||||||
require_once(realpath(dirname(__FILE__).'/'.$CLASS2_INCLUDE));
|
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;
|
$tmp = $self.'/'.$HANDLERS_DIRECTORY;
|
||||||
|
|
||||||
//Core functions - now API independent
|
//Core functions - now API independent
|
||||||
|
Reference in New Issue
Block a user