Strip ../ in reading.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a8b8667730
commit
6589bd70fd
|
@ -83,6 +83,7 @@ default:
|
|||
$file = '.' . $file;
|
||||
|
||||
$file = stripslashes($file);
|
||||
$file = str_replace('../', '', $file);
|
||||
$file = '../' . $file;
|
||||
|
||||
if (!is_file($file))
|
||||
|
|
Loading…
Reference in New Issue