2009-11-25 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_filemanager.php: fix bug that the url content "//" in
	cases for example install in root of www directory. Only fix in this part
	of source code because the rest of sources run fine.
	Fixes: 2903005



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2131 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-11-25 12:03:19 +00:00
parent c311027031
commit 8bb497cf7d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-11-25 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_filemanager.php: fix bug that the url content "//" in
cases for example install in root of www directory. Only fix in this part
of source code because the rest of sources run fine.
Fixes: 2903005
2009-11-25 Miguel de Dios <miguel.dedios@artica.es>
* index.php: clean source code, the blank end line in the end of document

View File

@ -187,7 +187,7 @@ function get_file_manager_file_info ($filepath) {
'link' => 0,
'is_dir' => false,
'name' => basename ($realpath),
'url' => $config['homeurl'].str_ireplace ($config['homedir'], '', $realpath),
'url' => str_replace('//', '/', $config['homeurl'].str_ireplace ($config['homedir'], '', $realpath)),
'realpath' => $realpath,
'size' => filesize ($realpath),
'last_modified' => filemtime ($realpath)