Bläddra i källkod

Fix path normalization

James Allen 12 år sedan
förälder
incheckning
96696e745e

+ 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