climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1563518 - /incubator/climate/trunk/ocw-ui/backend/directory_helpers.py
Date Sat, 01 Feb 2014 23:57:13 GMT
Author: joyce
Date: Sat Feb  1 23:57:12 2014
New Revision: 1563518

URL: http://svn.apache.org/r1563518
Log:
CLIMATE-326 - Minor bug fix in directory helpers

Modified:
    incubator/climate/trunk/ocw-ui/backend/directory_helpers.py

Modified: incubator/climate/trunk/ocw-ui/backend/directory_helpers.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw-ui/backend/directory_helpers.py?rev=1563518&r1=1563517&r2=1563518&view=diff
==============================================================================
--- incubator/climate/trunk/ocw-ui/backend/directory_helpers.py (original)
+++ incubator/climate/trunk/ocw-ui/backend/directory_helpers.py Sat Feb  1 23:57:12 2014
@@ -124,10 +124,10 @@ def _get_clean_directory_path(path_leade
     # which could allow access to unacceptable paths. This also means that
     if dir_path[0] == '/': dir_path = dir_path[1:]
 
-    os.path.join(path_leader, dir_path)
+    dir_path = os.path.join(path_leader, dir_path)
     if not os.path.isdir(dir_path):
         cur_frame = sys._getframe().f_code
-        err = "{}.{}: Create path is not a valid directory {}".format(
+        err = "{}.{}: Created path is not a valid directory {}".format(
             cur_frame.co_filename,
             cur_frame.co_name,
             dir_path



Mime
View raw message