mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
Prevent message_die() from being called recursively (by accident :D)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3288 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -500,6 +500,14 @@ function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '',
|
|||||||
global $userdata, $user_ip, $session_length;
|
global $userdata, $user_ip, $session_length;
|
||||||
global $starttime;
|
global $starttime;
|
||||||
|
|
||||||
|
if(defined('HAS_DIED'))
|
||||||
|
{
|
||||||
|
die("message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?");
|
||||||
|
}
|
||||||
|
|
||||||
|
define(HAS_DIED, 1);
|
||||||
|
|
||||||
|
|
||||||
$sql_store = $sql;
|
$sql_store = $sql;
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -710,4 +718,4 @@ function redirect($url)
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user