Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mahara-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
mahara
mahara-scripts
Commits
844e984d
Commit
844e984d
authored
Jun 22, 2011
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
During sanitisation, remove files not in a lang/xx.utf8 directory
parent
6a445da3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mahara-langpacks/langpack.php
mahara-langpacks/langpack.php
+4
-0
No files found.
mahara-langpacks/langpack.php
View file @
844e984d
...
...
@@ -174,6 +174,10 @@ if (!empty($sourcefiles)) {
$langfile
=
substr
(
$sourcefile
,
strlen
(
$source
)
+
1
);
if
(
!
preg_match
(
'/lang\/[a-z]{2}[a-zA-Z_]*\.utf8\//'
,
$langfile
))
{
continue
;
}
$en_file
=
preg_replace
(
'/lang\/[a-zA-Z_]+\.utf8\//'
,
'lang/en.utf8/'
,
$langfile
);
$en_file
=
$en_dir
.
'/'
.
$en_file
;
...
...
Write
Preview
Markdown
is supported
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