Skip to content

Commit 9e35e85

Browse files
committed
compatibility fix
1 parent 0769ec6 commit 9e35e85

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

assets/template/http/exception.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
border-bottom: 1px solid black;
6262
}
6363
.log.odd{
64-
64+
6565
}
6666
pre{
6767
margin:0px;
@@ -74,13 +74,13 @@
7474
<body>
7575
<div id="content">
7676
<div id="chat">Facing a problem? <a target="_blank" href="http://gitter.im/PHPixie/Hotline">Get help in our chatroom</a></div>
77-
<div id="exception"><?=$_($exception->getMessage());?></div>
77+
<div id="exception"><?=$this->htmlEscape($exception->getMessage())?></div>
7878
<div id="blocks">
7979
<?php foreach($trace->elements() as $key => $element): ?>
8080
<div class="block">
81-
<div class="file"><?=$_($element->location())?></div>
81+
<div class="file"><?=$this->htmlEscape($element->location())?></div>
8282
<div class="code">
83-
<?php
83+
<?php
8484
$offsets = $element->getNeighboringOffsets(7);
8585
$pad = strlen($element->line(end($offsets)));
8686
foreach($offsets as $key => $offset):
@@ -90,17 +90,17 @@
9090
}else{
9191
$prefix = str_pad('', $pad, '>');
9292
}
93-
93+
9494
?>
9595
<pre class="line <?php echo $offset==0?'highlight':''; ?>"><?php
96-
echo $_($prefix.' '.$element->lineContents($offset));
96+
$this->htmlOutput($prefix.' '.$element->lineContents($offset));
9797
?></pre>
9898
<?php endforeach;?>
9999
</div>
100100
</div>
101101
<?php endforeach;?>
102102
</div>
103-
<?php
103+
<?php
104104
$items = $logger->items();
105105
if(!empty($items)):
106106
?>
@@ -109,10 +109,12 @@
109109
<?php foreach($items as $key => $item):?>
110110
<div class="log">
111111
<div class="file">
112-
<?php echo $_($item->traceElement()->location());?>
112+
<?php
113+
$this->htmlOutput($item->traceElement()->location());
114+
?>
113115
</div>
114116
<pre><?php
115-
echo $_($item->valueDump());
117+
$this->htmlOutput($item->valueDump());
116118
?></pre>
117119
</div>
118120
<?php endforeach;?>

0 commit comments

Comments
 (0)