Browse Source

fixed getURI : remove ?params part

Nicolas Cannasse 17 years ago
parent
commit
8da26d7357
1 changed files with 3 additions and 2 deletions
  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];
 	}
 
 	/**