From 99a8e49233cde529109b39754edc30b1861a5da1 Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Wed, 8 Jan 2003 22:53:39 +0000 Subject: [PATCH] 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 --- phpBB/includes/functions.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 1acc321ce6..ce87e1a872 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -500,6 +500,14 @@ function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', global $userdata, $user_ip, $session_length; 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; // @@ -710,4 +718,4 @@ function redirect($url) exit; } -?> \ No newline at end of file +?>