summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/ajax/rollbackVersion.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/ajax/rollbackVersion.php')
-rw-r--r--apps/files_versions/ajax/rollbackVersion.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/ajax/rollbackVersion.php b/apps/files_versions/ajax/rollbackVersion.php
index 326d8db74f7..7bcac614bbc 100644
--- a/apps/files_versions/ajax/rollbackVersion.php
+++ b/apps/files_versions/ajax/rollbackVersion.php
@@ -4,7 +4,7 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('files_versions');
OCP\JSON::callCheck();
-$file = $_GET['file'];
+$file = (string)$_GET['file'];
$revision=(int)$_GET['revision'];
if(OCA\Files_Versions\Storage::rollback( $file, $revision )) {