Avoid possible path traversal using MySQL username
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
e46fdb8e5e
commit
c6cfb58834
@ -2659,7 +2659,7 @@ class PMA_Util
|
||||
$dir .= '/';
|
||||
}
|
||||
|
||||
return str_replace('%u', $GLOBALS['cfg']['Server']['user'], $dir);
|
||||
return str_replace('%u', PMA_securePath($GLOBALS['cfg']['Server']['user']), $dir);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user