Skip to content

Commit

Permalink
(mostly harmless) XSS fix in server add
Browse files Browse the repository at this point in the history
  • Loading branch information
andyst committed Aug 31, 2009
1 parent fc294c2 commit bd52a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/server_add/views/server_add_tree.html.php
Expand Up @@ -9,7 +9,7 @@
<? foreach ($parents as $dir): ?>
<li class="ui-icon-left">
<span class="ui-icon ui-icon-folder-open"></span>
<span ondblclick="open_dir('<?= $dir ?>')">
<span ondblclick="open_dir(<?= html::js_string($dir) ?>)">
<?= html::clean(basename($dir)) ?>
</span>
<ul>
Expand All @@ -22,7 +22,7 @@
<? if (is_dir($file)): ?>
ondblclick="open_dir($(this).attr('file'))"
<? endif ?>
file="<?= strtr($file, array('"' => '\\"')) ?>"
file="<?= html::clean_attribute($file) ?>"
>
<?= html::clean(basename($file)) ?>
</span>
Expand Down

0 comments on commit bd52a85

Please sign in to comment.