diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-11-28 20:29:39 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-11-28 20:29:39 +0100 |
commit | 3543c6de939c52517f590300b6d4289dc3a785ff (patch) | |
tree | 7b4e9432a6b5b1b460c5d602aab861831c93092b /inc/media.php | |
parent | 4feb08e1dd7fd1c0a09310ca29a7cbac2559edb9 (diff) | |
download | rpg-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 'inc/media.php')
-rw-r--r-- | inc/media.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/media.php b/inc/media.php index 9d3e90a54..07351e48b 100644 --- a/inc/media.php +++ b/inc/media.php @@ -332,7 +332,7 @@ function media_save($file, $id, $ow, $auth, $move) { global $lang, $conf; // get filename - $id = cleanID($id,false,true); + $id = cleanID($id); $fn = mediaFN($id); // get filetype regexp |