浏览代码

fixed getURI : remove ?params part

Nicolas Cannasse 17 年之前
父节点
当前提交
8da26d7357
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      std/php/Web.hx

+ 3 - 2
std/php/Web.hx

@@ -62,8 +62,9 @@ class Web {
 	/**
 		Returns the original request URL (before any server internal redirections)
 	**/
-	public static inline function getURI() : String {
-		return untyped __var__('_SERVER', 'REQUEST_URI');
+	public static function getURI() : String {
+		var s : String = untyped __php__("$_SERVER['REQUEST_URI']");
+		return s.split("?")[0];
 	}
 
 	/**