Commits

Ian Bicking  committed a202432

one off error in calculating the path

  • Participants
  • Parent commits b8c0e3f

Comments (0)

Files changed (1)

File silverlining/mgr-scripts/rewrite-map.py

             return None, 'addslash', None
         if path.startswith(path_prefix):
             path_prefix = path_prefix.rstrip('/') or '/'
-            return path_prefix, data, path[len(path_prefix)-1:]
+            return path_prefix, data, path[len(path_prefix):]
     else:
         ## FIXME: how should this fail?
         raise LookupError('No application mounted to /')