Skip to content

Commit 44b3e16

Browse files
Fix html injection
1 parent b57e3b0 commit 44b3e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function print_namespace($item, $name, $fullkey, $islast) {
107107

108108
?>
109109
<li<?php echo empty($class) ? '' : ' class="'.implode(' ', $class).'"'?>>
110-
<input type="checkbox" name="checked_keys" value="<?php echo $fullkey?>"/>
110+
<input type="checkbox" name="checked_keys" value="<?php echo format_html($fullkey)?>"/>
111111
<a href="?view&amp;s=<?php echo $server['id']?>&amp;d=<?php echo $server['db']?>&amp;key=<?php echo urlencode($fullkey)?>" title="<?php echo format_html($name)?>"><?php echo format_html($name)?><?php if ($len !== false) { ?><span class="info">(<?php echo $len?>)</span><?php } ?></a>
112112
</li>
113113
<?php

0 commit comments

Comments
 (0)