mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 14:35:56 +02:00
[ticket/15227] Remove STRIP, as always false
PHPBB3-15227
This commit is contained in:
parent
c2c5c20c31
commit
1d5f5ccffc
@ -87,12 +87,8 @@ if (version_compare(PHP_VERSION, '5.4') < 0)
|
|||||||
{
|
{
|
||||||
die('You are running an unsupported PHP version. Please upgrade to PHP 5.4.0 or higher before trying to install or update to phpBB 3.2');
|
die('You are running an unsupported PHP version. Please upgrade to PHP 5.4.0 or higher before trying to install or update to phpBB 3.2');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register globals and magic quotes have been dropped in PHP 5.4 so no need for extra checks
|
// Register globals and magic quotes have been dropped in PHP 5.4 so no need for extra checks
|
||||||
/**
|
|
||||||
* @ignore
|
|
||||||
*/
|
|
||||||
define('STRIP', false);
|
|
||||||
|
|
||||||
// In PHP 5.3.0 the error level has been raised to E_WARNING which causes problems
|
// In PHP 5.3.0 the error level has been raised to E_WARNING which causes problems
|
||||||
// because we show E_WARNING errors and do not set a default timezone.
|
// because we show E_WARNING errors and do not set a default timezone.
|
||||||
|
@ -129,7 +129,7 @@ class filespec
|
|||||||
$this->class_initialized = true;
|
$this->class_initialized = true;
|
||||||
$this->filename = $upload_ary['tmp_name'];
|
$this->filename = $upload_ary['tmp_name'];
|
||||||
$this->filesize = $upload_ary['size'];
|
$this->filesize = $upload_ary['size'];
|
||||||
$name = (STRIP) ? stripslashes($upload_ary['name']) : $upload_ary['name'];
|
$name = $upload_ary['name'];
|
||||||
$name = trim(utf8_basename($name));
|
$name = trim(utf8_basename($name));
|
||||||
$this->realname = $this->uploadname = $name;
|
$this->realname = $this->uploadname = $name;
|
||||||
$this->mimetype = $upload_ary['type'];
|
$this->mimetype = $upload_ary['type'];
|
||||||
|
@ -95,7 +95,7 @@ class md5_phpbb2 extends base
|
|||||||
|
|
||||||
// in phpBB2 passwords were used exactly as they were sent, with addslashes applied
|
// in phpBB2 passwords were used exactly as they were sent, with addslashes applied
|
||||||
$password_old_format = isset($_REQUEST['password']) ? (string) $_REQUEST['password'] : '';
|
$password_old_format = isset($_REQUEST['password']) ? (string) $_REQUEST['password'] : '';
|
||||||
$password_old_format = (!STRIP) ? addslashes($password_old_format) : $password_old_format;
|
$password_old_format = addslashes($password_old_format);
|
||||||
$password_new_format = $this->request->variable('password', '', true);
|
$password_new_format = $this->request->variable('password', '', true);
|
||||||
|
|
||||||
if ($super_globals_disabled)
|
if ($super_globals_disabled)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user