--- a/src/hg-ssh Mon Oct 12 11:40:05 2009 +0100
+++ b/src/hg-ssh Mon Oct 12 12:03:53 2009 +0100
@@ -42,8 +42,7 @@
sys.exit(-1)
def getpath(path):
- if path.endswith("/"):
- path = path[:-1]
+ path = path.rstrip("/")
if not ruleset.goodpath(path):
fail("Disallowing path: %s" % path)
return path