urlencode file/dir to allow special characters in filename/path (issue #95)

This commit is contained in:
Björn Schießle 2012-11-07 10:45:29 +01:00
parent bbe0cf376f
commit 6e8f970999
1 changed files with 2 additions and 2 deletions

View File

@ -69,9 +69,9 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
if (isset($linkItem['share_with'])) {
// Check password
if (isset($_GET['file'])) {
$url = OCP\Util::linkToPublic('files').'&file='.$_GET['file'];
$url = OCP\Util::linkToPublic('files').'&file='.urlencode($_GET['file']);
} else {
$url = OCP\Util::linkToPublic('files').'&dir='.$_GET['dir'];
$url = OCP\Util::linkToPublic('files').'&dir='.urlencode($_GET['dir']);
}
if (isset($_POST['password'])) {
$password = $_POST['password'];