BUG: $debugging_ctrl = 'URL'

From: Date: Wed, 15 Aug 2001 04:05:48 +0000
Subject: BUG: $debugging_ctrl = 'URL'
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1334@lists.php.net to get a copy of this message
There is a small bug that occurs when $debugging_ctrl = 'URL'. On line 605 of Smarty.class.php it should be changed from: if ($this->debugging || ($this->debugging_ctrl == 'URL' && (!empty($QUERY_STRING) && strstr('SMARTY_DEBUG',$QUERY_STRING)))) { echo $this->_generate_debug_output(); } to: if ($this->debugging || ($this->debugging_ctrl == 'URL' && (!empty($QUERY_STRING) && strstr($QUERY_STRING,'SMARTY_DEBUG')))) { echo $this->_generate_debug_output(); } The usage of strstr is strstr(<haystack>,<needle>) and not strstr(<needle>,<haystack>). -- Daniel Lashua

« previous php.smarty.general (#1334) next »