Commits

Ian Bicking committed a202432

one off error in calculating the path

Comments (0)

Files changed (1)

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 /')