浏览代码

added trailing / to getCwd()

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

+ 1 - 1
std/php/Web.hx

@@ -236,7 +236,7 @@ class Web {
 		Get the current script directory in the local filesystem.
 	**/
 	public static inline function getCwd() : String {
-		return untyped __php__('dirname($_SERVER["SCRIPT_FILENAME"])');
+		return untyped __php__('dirname($_SERVER["SCRIPT_FILENAME"])') + "/";
 	}
 
 	/**