Avoid possible path traversal using MySQL username

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-06-30 10:04:46 +02:00
parent e46fdb8e5e
commit c6cfb58834

View File

@ -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);
}
/**