Skip to content

Commit

Permalink
BUGFIX If SS_Backtrace::get_rendered_backtrace() has $plainText argument
Browse files Browse the repository at this point in the history
to TRUE, ensure there is no HTML in the output.
  • Loading branch information
halkyon committed Apr 14, 2012
1 parent 7e3a698 commit edaed5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/Backtrace.php
Expand Up @@ -159,7 +159,7 @@ static function full_func_name($item, $showArgs = false, $argCharLimit = 10000)
*/
static function get_rendered_backtrace($bt, $plainText = false, $ignoredFunctions = null) {
$bt = self::filter_backtrace($bt, $ignoredFunctions);
$result = "<ul>";
$result = ($plainText) ? '' : '<ul>';
foreach($bt as $item) {
if($plainText) {
$result .= self::full_func_name($item,true) . "\n";
Expand All @@ -177,7 +177,7 @@ static function get_rendered_backtrace($bt, $plainText = false, $ignoredFunction
$result .= "</li>\n";
}
}
$result .= "</ul>";
if(!$plainText) $result .= '</ul>';
return $result;
}

Expand Down

0 comments on commit edaed5e

Please sign in to comment.