Show More
@@ -21,7 +21,7 b' class remotelock(object):' | |||||
21 |
|
21 | |||
22 | def _serverquote(s): |
|
22 | def _serverquote(s): | |
23 | '''quote a string for the remote shell ... which we assume is sh''' |
|
23 | '''quote a string for the remote shell ... which we assume is sh''' | |
24 |
if re.match( |
|
24 | if re.match('[a-zA-Z0-9@%_+=:,./-]*$', s): | |
25 | return s |
|
25 | return s | |
26 | return "'%s'" % s.replace("'", "'\\''") |
|
26 | return "'%s'" % s.replace("'", "'\\''") | |
27 |
|
27 |
General Comments 0
You need to be logged in to leave comments.
Login now