瀏覽代碼

Fix path normalization

James Allen 12 年之前
父節點
當前提交
96696e745e
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/web/public/coffee/app/ide/pdf/controllers/PdfController.coffee

+ 1 - 1
services/web/public/coffee/app/ide/pdf/controllers/PdfController.coffee

@@ -89,7 +89,7 @@ define [
 
 
 			rootDocDirname = ide.fileTreeManager.getRootDocDirname()
 			rootDocDirname = ide.fileTreeManager.getRootDocDirname()
 			if rootDocDirname?
 			if rootDocDirname?
-				path = path.replace(/^\.\//, rootDocDirname)
+				path = path.replace(/^\.\//, rootDocDirname + "/")
 
 
 			return path
 			return path