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
43066dee
Commit
43066dee
authored
May 27, 2009
by
Nigel McNie
Browse files
Allow slashes in filenames when using the LEAP exporter.
parent
37e5cdf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/export/leap/lib.php
View file @
43066dee
...
...
@@ -333,6 +333,7 @@ class PluginExportLeap extends PluginExport {
if
(
empty
(
$newname
))
{
throw
new
ParamOutOfRangeException
(
"Tried to add non existant file
$filepath
"
);
}
$newname
=
substr
(
str_replace
(
'/'
,
'_'
,
$newname
),
0
,
245
);
$this
->
attachments
[]
=
(
object
)
array
(
'file'
=>
$filepath
,
'name'
=>
$newname
);
return
(
count
(
$this
->
attachments
)
-
1
)
.
'-'
.
$newname
;
}
...
...
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