mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
- make sure the drop box folder is used, even if the user has a login
name like '../user'
This commit is contained in:
parent
315fe7ac55
commit
39b4638134
|
@ -50,6 +50,10 @@ var targetName = document.<?php echo $form?>.dropfolderfile<?php print $form ?>;
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
|
|
||||||
$dir = $dropfolderdir.'/'.$user->getLogin();
|
$dir = $dropfolderdir.'/'.$user->getLogin();
|
||||||
|
/* Check if we are still looking in the configured directory and
|
||||||
|
* not somewhere else, e.g. if the login was '../test'
|
||||||
|
*/
|
||||||
|
if(dirname($dir) == $dropfolderdir) {
|
||||||
if(is_dir($dir)) {
|
if(is_dir($dir)) {
|
||||||
$d = dir($dir);
|
$d = dir($dir);
|
||||||
echo "<table>\n";
|
echo "<table>\n";
|
||||||
|
@ -62,6 +66,7 @@ var targetName = document.<?php echo $form?>.dropfolderfile<?php print $form ?>;
|
||||||
}
|
}
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$this->contentContainerEnd();
|
$this->contentContainerEnd();
|
||||||
echo "</body>\n</html>\n";
|
echo "</body>\n</html>\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user