summaryrefslogtreecommitdiff
path: root/lib/exe/detail.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exe/detail.php')
-rw-r--r--lib/exe/detail.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/exe/detail.php b/lib/exe/detail.php
index daa55f405..cc29d5b87 100644
--- a/lib/exe/detail.php
+++ b/lib/exe/detail.php
@@ -5,9 +5,7 @@ require_once(DOKU_INC.'inc/init.php');
$IMG = getID('media');
$ID = cleanID($INPUT->str('id'));
-$REV = & $INPUT->ref('rev');
-//sanitize revision
-$REV = preg_replace('/[^0-9]/', '', $REV);
+$REV = $INPUT->int('rev');
// this makes some general info available as well as the info about the
// "parent" page