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
f95567f7
Commit
f95567f7
authored
May 15, 2015
by
Aaron Wells
Committed by
Gerrit Code Review
May 15, 2015
Browse files
Merge "Bug 1450297: require artefact/file/lib.php in a safer way"
parents
1ed98eaa
53e0c284
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/form/elements/wysiwyg.php
View file @
f95567f7
...
@@ -95,7 +95,7 @@ function pieform_element_wysiwyg_get_headdata() {
...
@@ -95,7 +95,7 @@ function pieform_element_wysiwyg_get_headdata() {
$result
.
=
" tinyMCE.execCommand('mceRemoveEditor', false, '
$editor
');
\n
"
;
$result
.
=
" tinyMCE.execCommand('mceRemoveEditor', false, '
$editor
');
\n
"
;
}
}
$result
.
=
"});</script>"
;
$result
.
=
"});</script>"
;
require
_once
(
get_config
(
'docroot'
)
.
'artefact/file/lib.php
'
);
safe_
require
(
'artefact'
,
'file
'
);
$strings
=
PluginArtefactFile
::
jsstrings
(
'filebrowser'
);
$strings
=
PluginArtefactFile
::
jsstrings
(
'filebrowser'
);
$jsstrings
=
''
;
$jsstrings
=
''
;
foreach
(
$strings
as
$section
=>
$sectionstrings
)
{
foreach
(
$strings
as
$section
=>
$sectionstrings
)
{
...
...
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