Use sanitizeHTML instead of strip_tags
This commit is contained in:
parent
39a9a4e73e
commit
726be04e5f
|
@ -26,8 +26,8 @@ require_once('lib/impress.php');
|
|||
// Check if we are a user
|
||||
OCP\User::checkLoggedIn();
|
||||
|
||||
$filename = strip_tags($_GET['file']);
|
||||
$title = strip_tags($_GET['name']);
|
||||
$filename = OCP\Util::sanitizeHTML($_GET['file']);
|
||||
$title = OCP\Util::sanitizeHTML($_GET['name']);
|
||||
|
||||
if(!OC_Filesystem::file_exists($filename)){
|
||||
header("HTTP/1.0 404 Not Found");
|
||||
|
|
Loading…
Reference in New Issue