Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
9f169bb4
Commit
9f169bb4
authored
Oct 18, 2006
by
Penny Leach
Browse files
No commit message
No commit message
parent
65813a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/web.php
View file @
9f169bb4
...
...
@@ -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
;
}
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment