summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-11-28 20:29:39 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-11-28 20:29:39 +0100
commit3543c6de939c52517f590300b6d4289dc3a785ff (patch)
tree7b4e9432a6b5b1b460c5d602aab861831c93092b /lib/exe
parent4feb08e1dd7fd1c0a09310ca29a7cbac2559edb9 (diff)
downloadrpg-3543c6de939c52517f590300b6d4289dc3a785ff.tar.gz
rpg-3543c6de939c52517f590300b6d4289dc3a785ff.tar.bz2
deprecated 3rd parameter of cleanID() FS#2377
For some reason trailing/leading underscores were allowed when uploading files. But the rest of the code (eg. listing or downloading files) never supported this. This patch removes this special case for uploading files to streamline ID cleaning of pages and media files.
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/ajax.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php
index f8d62cb57..8edd559d6 100644
--- a/lib/exe/ajax.php
+++ b/lib/exe/ajax.php
@@ -257,7 +257,7 @@ function ajax_mediaupload(){
$id = $_GET['qqfile'];
}
- $id = cleanID($id, false, true);
+ $id = cleanID($id);
$NS = $_REQUEST['ns'];
$ns = $NS.':'.getNS($id);