forked from len0rd/rockbox
[Bugix] %ft has access to the root of the drive using /
path_append treats a path starting with / as absolute allowing escape by themes Change-Id: I8e5fb55f01cacd5ec0fc5538d92dfcfbdceb6892
This commit is contained in:
parent
774357e722
commit
9c477e84ff
1 changed files with 4 additions and 0 deletions
|
|
@ -1357,6 +1357,10 @@ static int parse_filetext(struct skin_element *element,
|
|||
__func__, filename, element->params_count);
|
||||
return WPS_ERROR_INVALID_PARAM;
|
||||
}
|
||||
|
||||
while(*filename == PATH_SEPCH) /* no absolute paths! */
|
||||
filename++;
|
||||
|
||||
path_append(buf, ROCKBOX_DIR, filename, sizeof(buf));
|
||||
DEBUGF("%s %s[%d]\n", __func__, buf, line);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue