summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-31 01:45:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-31 01:45:49 +0000
commit555249ddce76186f4646202376180904aedd7eed (patch)
tree7274bdb5d49e00bd2b3a522d95f200811f923c59
parente6c4670d0b87ffec2a4e21f02ebf6937d1660b3e (diff)
downloadpfsense-555249ddce76186f4646202376180904aedd7eed.zip
pfsense-555249ddce76186f4646202376180904aedd7eed.tar.gz
Change // to /
-rw-r--r--usr/local/www/filebrowser/browser.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/filebrowser/browser.php b/usr/local/www/filebrowser/browser.php
index 48000ec..4efaaf6 100644
--- a/usr/local/www/filebrowser/browser.php
+++ b/usr/local/www/filebrowser/browser.php
@@ -118,7 +118,8 @@ foreach($files as $file):
<tr>
<td></td>
<td class="fbFile vexpl" id="<?=$fqpn;?>" align="left">
- <div onClick="$('fbTarget').value='<?=$path?>/<?=$file?>'; loadFile(); new Effect.Fade($('fbBrowser'));">
+ <?php $filename = str_replace("//","/", "{$path}/{$file}"); ?>
+ <div onClick="$('fbTarget').value='<?=$filename?>'; loadFile(); new Effect.Fade($('fbBrowser'));">
<img src="/filebrowser/images/file_<?=$type;?>.gif" alt="" title="">
&nbsp;<?=$file;?>
</div>
OpenPOWER on IntegriCloud