Commit 9f169bb4 authored by Penny Leach's avatar Penny Leach
Browse files

No commit message

No commit message
parent 65813a18
......@@ -258,6 +258,7 @@ function clean_param($param, $type) {
return eregi_replace('[^a-zA-Z0-9_-]', '', $param);
case PARAM_CLEANFILE: // allow only safe characters
// @todo this function hasn't been ported from moodle yet.
return clean_filename($param);
case PARAM_FILE: // Strip all suspicious characters from filename
......@@ -443,4 +444,10 @@ function cleanAttributes2($htmlArray){
return '<'. $slash . $elem . $attStr . $xhtml_slash .'>';
}
function clean_filename($filename) {
//@todo
return $filename;
}
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment