File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 61
61
border-bottom: 1px solid black;
62
62
}
63
63
.log.odd{
64
-
64
+
65
65
}
66
66
pre{
67
67
margin:0px;
74
74
<body>
75
75
<div id="content">
76
76
<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>
78
78
<div id="blocks">
79
79
<?php foreach ($ trace ->elements () as $ key => $ element ): ?>
80
80
<div class="block">
81
- <div class="file"><?= $ _ ($ element ->location ())?> </div>
81
+ <div class="file"><?= $ this -> htmlEscape ($ element ->location ())?> </div>
82
82
<div class="code">
83
- <?php
83
+ <?php
84
84
$ offsets = $ element ->getNeighboringOffsets (7 );
85
85
$ pad = strlen ($ element ->line (end ($ offsets )));
86
86
foreach ($ offsets as $ key => $ offset ):
90
90
}else {
91
91
$ prefix = str_pad ('' , $ pad , '> ' );
92
92
}
93
-
93
+
94
94
?>
95
95
<pre class="line <?php echo $ offset ==0 ?'highlight ' :'' ; ?> "><?php
96
- echo $ _ ($ prefix .' ' .$ element ->lineContents ($ offset ));
96
+ $ this -> htmlOutput ($ prefix .' ' .$ element ->lineContents ($ offset ));
97
97
?> </pre>
98
98
<?php endforeach ;?>
99
99
</div>
100
100
</div>
101
101
<?php endforeach ;?>
102
102
</div>
103
- <?php
103
+ <?php
104
104
$ items = $ logger ->items ();
105
105
if (!empty ($ items )):
106
106
?>
109
109
<?php foreach ($ items as $ key => $ item ):?>
110
110
<div class="log">
111
111
<div class="file">
112
- <?php echo $ _ ($ item ->traceElement ()->location ());?>
112
+ <?php
113
+ $ this ->htmlOutput ($ item ->traceElement ()->location ());
114
+ ?>
113
115
</div>
114
116
<pre><?php
115
- echo $ _ ($ item ->valueDump ());
117
+ $ this -> htmlOutput ($ item ->valueDump ());
116
118
?> </pre>
117
119
</div>
118
120
<?php endforeach ;?>
You can’t perform that action at this time.
0 commit comments