urlencode file/dir to allow special characters in filename/path (issue #95)
This commit is contained in:
parent
3e01fe1dbb
commit
12983cf0b0
|
@ -70,9 +70,9 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
|
||||||
if (isset($linkItem['share_with'])) {
|
if (isset($linkItem['share_with'])) {
|
||||||
// Check password
|
// Check password
|
||||||
if (isset($_GET['file'])) {
|
if (isset($_GET['file'])) {
|
||||||
$url = OCP\Util::linkToPublic('files').'&file='.$_GET['file'];
|
$url = OCP\Util::linkToPublic('files').'&file='.urlencode($_GET['file']);
|
||||||
} else {
|
} else {
|
||||||
$url = OCP\Util::linkToPublic('files').'&dir='.$_GET['dir'];
|
$url = OCP\Util::linkToPublic('files').'&dir='.urlencode($_GET['dir']);
|
||||||
}
|
}
|
||||||
if (isset($_POST['password'])) {
|
if (isset($_POST['password'])) {
|
||||||
$password = $_POST['password'];
|
$password = $_POST['password'];
|
||||||
|
|
Loading…
Reference in New Issue