##// END OF EJS Templates
sshrepo: add more safe characters (issue2983)...
Thomas Arendsen Hein -
r15624:be43234a default
parent child Browse files
Show More
@@ -21,7 +21,7 b' class remotelock(object):'
21 21
22 22 def _serverquote(s):
23 23 '''quote a string for the remote shell ... which we assume is sh'''
24 if re.match(r'[a-zA-Z0-9._\-/]*$', s):
24 if re.match('[a-zA-Z0-9@%_+=:,./-]*$', s):
25 25 return s
26 26 return "'%s'" % s.replace("'", "'\\''")
27 27
General Comments 0
You need to be logged in to leave comments. Login now