@@ -33,12 +33,12 @@ use Nette,
3333<?php if (empty ($ request )): ?>
3434 no route
3535<?php else : ?>
36- <?php echo htmlSpecialChars ($ request ->getPresenterName () . ': ' . (isset ($ request ->parameters [Presenter::ACTION_KEY ]) ? $ request ->parameters [Presenter::ACTION_KEY ] : Presenter::DEFAULT_ACTION ) . (isset ($ request ->parameters [Presenter::SIGNAL_KEY ]) ? " {$ request ->parameters [Presenter::SIGNAL_KEY ]}! " : '' )) ?>
36+ <?php echo htmlSpecialChars ($ request ->getPresenterName () . ': ' . (isset ($ request ->parameters [Presenter::ACTION_KEY ]) ? $ request ->parameters [Presenter::ACTION_KEY ] : Presenter::DEFAULT_ACTION ) . (isset ($ request ->parameters [Presenter::SIGNAL_KEY ]) ? " {$ request ->parameters [Presenter::SIGNAL_KEY ]}! " : '' ), ENT_NOQUOTES , ' UTF-8 ' ) ?>
3737<?php endif ?>
3838</h1>
3939
4040<div class="tracy-inner">
41- <p><code><?php echo htmlSpecialChars ($ url ) ?> </code></p>
41+ <p><code><?php echo htmlSpecialChars ($ url, ENT_IGNORE , ' UTF-8 ' ) ?> </code></p>
4242
4343<?php if (empty ($ routers )): ?>
4444 <p>No routers defined.</p>
@@ -61,24 +61,24 @@ use Nette,
6161 <tr class="<?php echo $ router ['matched ' ] ?> ">
6262 <td><?php echo $ router ['matched ' ] ?> </td>
6363
64- <td><code title="<?php echo htmlSpecialChars ($ router ['class ' ]) ?> "><?php echo preg_replace ('#.+ \\\\# ' , '' , htmlSpecialChars ($ router ['class ' ])) ?> </code></td>
64+ <td><code title="<?php echo htmlSpecialChars ($ router ['class ' ], ENT_QUOTES , ' UTF-8 ' ) ?> "><?php echo preg_replace ('#.+ \\\\# ' , '' , htmlSpecialChars ($ router ['class ' ], ENT_NOQUOTES , ' UTF-8 ' )) ?> </code></td>
6565
66- <td><code><strong><?php echo htmlSpecialChars ($ router ['mask ' ]) ?> </strong></code></td>
66+ <td><code><strong><?php echo htmlSpecialChars ($ router ['mask ' ], ENT_NOQUOTES , ' UTF-8 ' ) ?> </strong></code></td>
6767
6868 <td><code>
6969 <?php foreach ($ router ['defaults ' ] as $ key => $ value ): ?>
70- <?php echo htmlSpecialChars ($ key ), " = " , is_string ($ value ) ? htmlSpecialChars ($ value ) . '<br /> ' : Dumper::toHtml ($ value , array (Dumper::COLLAPSE => TRUE , Dumper::LIVE => TRUE )) ?>
70+ <?php echo htmlSpecialChars ($ key, ENT_IGNORE , ' UTF-8 ' ), " = " , is_string ($ value ) ? htmlSpecialChars ($ value, ENT_IGNORE , ' UTF-8 ' ) . '<br /> ' : Dumper::toHtml ($ value , array (Dumper::COLLAPSE => TRUE , Dumper::LIVE => TRUE )) ?>
7171 <?php endforeach ?>
7272 </code></td>
7373
74- <td><code><?php echo htmlSpecialChars ($ router ['module ' ]) ?> </code></td>
74+ <td><code><?php echo htmlSpecialChars ($ router ['module ' ], ENT_NOQUOTES , ' UTF-8 ' ) ?> </code></td>
7575
7676 <td><?php if ($ router ['request ' ]): ?> <code>
7777 <?php $ params = $ router ['request ' ]->getParameters (); ?>
78- <strong><?php echo htmlSpecialChars ($ router ['request ' ]->getPresenterName () . ': ' . (isset ($ params [Presenter::ACTION_KEY ]) ? $ params [Presenter::ACTION_KEY ] : Presenter::DEFAULT_ACTION )) ?> </strong><br />
78+ <strong><?php echo htmlSpecialChars ($ router ['request ' ]->getPresenterName () . ': ' . (isset ($ params [Presenter::ACTION_KEY ]) ? $ params [Presenter::ACTION_KEY ] : Presenter::DEFAULT_ACTION ), ENT_NOQUOTES , ' UTF-8 ' ) ?> </strong><br />
7979 <?php unset($ params [Presenter::ACTION_KEY ]) ?>
8080 <?php foreach ($ params as $ key => $ value ): ?>
81- <?php echo htmlSpecialChars ($ key ), " = " , is_string ($ value ) ? htmlSpecialChars ($ value ) . '<br /> ' : Dumper::toHtml ($ value , array (Dumper::COLLAPSE => TRUE , Dumper::LIVE => TRUE )) ?>
81+ <?php echo htmlSpecialChars ($ key, ENT_IGNORE , ' UTF-8 ' ), " = " , is_string ($ value ) ? htmlSpecialChars ($ value, ENT_IGNORE , ' UTF-8 ' ) . '<br /> ' : Dumper::toHtml ($ value , array (Dumper::COLLAPSE => TRUE , Dumper::LIVE => TRUE )) ?>
8282 <?php endforeach ?>
8383 </code><?php endif ?> </td>
8484 </tr>
0 commit comments