git-svn-id: http://xe-core.googlecode.com/svn/trunk@1489 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-05-29 02:34:15 +00:00
parent 5f91108021
commit fb52f9fa49
4 changed files with 39 additions and 8 deletions

View file

@ -487,11 +487,8 @@
$url_list[] = sprintf("%s=%s",$key, $val);
}
preg_match("/([a-zA-Z\_]+)\.php/i", $_SERVER['PHP_SELF'], $match);
$filename = $match[0];
if($filename == 'index.php') $filename = '';
return './'.$filename.'?'.htmlspecialchars(implode('&', $url_list));
$path = str_replace('index.php','',$_SERVER['SCRIPT_NAME']);
return sprintf('%s?%s', $path, htmlspecialchars(implode('&',$url_list)));
}
/**