src/hg-ssh
changeset 103 ae1845978e38
parent 79 3a58a95fae2f
child 106 0519745e7a57
--- 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