Skip to content
Snippets Groups Projects
Commit 85209287 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

[Files] Use htmlspecialchars()

parent 4860d032
Branches
No related tags found
No related merge requests found
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
<?php endif; ?> <?php endif; ?>
<span class="nametext"> <span class="nametext">
<?php if($file['type'] == 'dir'):?> <?php if($file['type'] == 'dir'):?>
<?php p($file['name']);?> <?php print_unescaped(htmlspecialchars($file['name']));?>
<?php else:?> <?php else:?>
<?php p($file['basename']);?><span <?php print_unescaped(htmlspecialchars($file['basename']));?><span
class='extension'><?php p($file['extension']);?></span> class='extension'><?php p($file['extension']);?></span>
<?php endif;?> <?php endif;?>
</span> </span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment