Skip to content
Permalink
Browse files Browse the repository at this point in the history
Encode path+fn in browser.php. Fixes #13262
  • Loading branch information
jim-p committed Sep 29, 2022
1 parent 9bada3e commit 73ca674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/local/www/vendor/filebrowser/browser.php
Expand Up @@ -148,7 +148,7 @@ function get_content($dir) {
?>
<tr>
<td></td>
<td class="fbFile vexpl text-left" id="<?=$fqpn;?>">
<td class="fbFile vexpl text-left" id="<?=htmlspecialchars($fqpn);?>">
<?php $filename = htmlspecialchars(addslashes(str_replace("//","/", "{$path}/{$file}"))); ?>
<div onClick="$('#fbTarget').val('<?=$filename?>'); loadFile(); $('#fbBrowser').fadeOut();">
<img src="/vendor/filebrowser/images/file_<?=$type;?>.gif" alt="" title="">
Expand Down

0 comments on commit 73ca674

Please sign in to comment.