Skip to content
Snippets Groups Projects
Commit ae770f98 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #1534 from splitbrain/mediaFN-CleanOptional

Make cleaning optional in mediaFN, keep as default
parents 22694784 d0e997c6
No related branches found
No related tags found
No related merge requests found
......@@ -391,9 +391,9 @@ function metaFiles($id){
* @param string|int $rev empty string or revision timestamp
* @return string full path
*/
function mediaFN($id, $rev=''){
function mediaFN($id, $rev='', $clean=true){
global $conf;
$id = cleanID($id);
if ($clean) $id = cleanID($id);
$id = str_replace(':','/',$id);
if(empty($rev)){
$fn = $conf['mediadir'].'/'.utf8_encodeFN($id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment