浏览代码

fixed getParamsString() returning "null" instead of ""

Nicolas Cannasse 15 年之前
父节点
当前提交
6f8649920e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      std/neko/Web.hx

+ 2 - 1
std/neko/Web.hx

@@ -144,7 +144,8 @@ class Web {
 		Returns all the GET parameters String
 	**/
 	public static function getParamsString() {
-		return new String(_get_params_string());
+		var p = _get_params_string();
+		return if( p == null ) "" else new String(p);
 	}
 
 	/**