错误信息:
解析错误:语法错误,第 135 行 C:\xampp\htdocs\index.php 中的意外“{”
代码:
if(isset($_REQUEST['d'])
{ // LINE 135 IS THIS ONE
$d = $_REQUEST['d'];
if ($d) {
while (preg_match('/\\\/',$d)) $d = preg_replace('/\\\/','/',$d);
while (preg_match('/\/\//',$d)) $d = preg_replace('/\/\//','/',$d);
while (preg_match('/\.\.\//',$d)) $d = preg_replace('/\.\.\//','/',$d);
if ($d[strlen($d)-1] != '/') $d = $d.'/';
if ($d == '/') $d = '';
}
}