Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX If SS_Backtrace::get_rendered_backtrace() has $plainText argument

to TRUE, ensure there is no HTML in the output.
  • Loading branch information...
commit edaed5ef7ed98addb16c10aee909c684a035c9d3 1 parent 7e3a698
@halkyon halkyon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 dev/Backtrace.php
View
4 dev/Backtrace.php
@@ -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";
@@ -177,7 +177,7 @@ static function get_rendered_backtrace($bt, $plainText = false, $ignoredFunction
$result .= "</li>\n";
}
}
- $result .= "</ul>";
+ if(!$plainText) $result .= '</ul>';
return $result;
}
Please sign in to comment.
Something went wrong with that request. Please try again.