Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
d4d56f00
Commit
d4d56f00
authored
8 years ago
by
AndreyL ProductEngine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-7074 Fixed ability to escape from skin directory with <icon>
parent
1c5bdf4b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/contributions.txt
+2
-0
2 additions, 0 deletions
doc/contributions.txt
indra/llvfs/lldir.cpp
+9
-2
9 additions, 2 deletions
indra/llvfs/lldir.cpp
with
11 additions
and
2 deletions
doc/contributions.txt
+
2
−
0
View file @
d4d56f00
...
@@ -771,6 +771,8 @@ Kadah Coba
...
@@ -771,6 +771,8 @@ Kadah Coba
STORM-1060
STORM-1060
STORM-1843
STORM-1843
Jondan Lundquist
Jondan Lundquist
Joosten Briebers
MAINT-7074
Josef Munster
Josef Munster
Josette Windlow
Josette Windlow
Juilan Tripsa
Juilan Tripsa
...
...
This diff is collapsed.
Click to expand it.
indra/llvfs/lldir.cpp
+
9
−
2
View file @
d4d56f00
...
@@ -720,6 +720,15 @@ std::vector<std::string> LLDir::findSkinnedFilenames(const std::string& subdir,
...
@@ -720,6 +720,15 @@ std::vector<std::string> LLDir::findSkinnedFilenames(const std::string& subdir,
<<
((
constraint
==
CURRENT_SKIN
)
?
"CURRENT_SKIN"
:
"ALL_SKINS"
)
<<
((
constraint
==
CURRENT_SKIN
)
?
"CURRENT_SKIN"
:
"ALL_SKINS"
)
<<
LL_ENDL
;
<<
LL_ENDL
;
// Build results vector.
std
::
vector
<
std
::
string
>
results
;
// Disallow filenames that may escape subdir
if
(
filename
.
find
(
".."
)
!=
std
::
string
::
npos
)
{
LL_WARNS
(
"LLDir"
)
<<
"Ignoring potentially relative filename '"
<<
filename
<<
"'"
<<
LL_ENDL
;
return
results
;
}
// Cache the default language directory for each subdir we've encountered.
// Cache the default language directory for each subdir we've encountered.
// A cache entry whose value is the empty string means "not localized,
// A cache entry whose value is the empty string means "not localized,
// don't bother checking again."
// don't bother checking again."
...
@@ -784,8 +793,6 @@ std::vector<std::string> LLDir::findSkinnedFilenames(const std::string& subdir,
...
@@ -784,8 +793,6 @@ std::vector<std::string> LLDir::findSkinnedFilenames(const std::string& subdir,
}
}
}
}
// Build results vector.
std
::
vector
<
std
::
string
>
results
;
// The process we use depends on 'constraint'.
// The process we use depends on 'constraint'.
if
(
constraint
!=
CURRENT_SKIN
)
// meaning ALL_SKINS
if
(
constraint
!=
CURRENT_SKIN
)
// meaning ALL_SKINS
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment