##// END OF EJS Templates
util: fix unsafe url abort with bytestr() on url...
Augie Fackler -
r36742:ca201470 default
parent child Browse files
Show More
@@ -3097,7 +3097,7 b' def checksafessh(path):'
3097 path = urlreq.unquote(path)
3097 path = urlreq.unquote(path)
3098 if path.startswith('ssh://-') or path.startswith('svn+ssh://-'):
3098 if path.startswith('ssh://-') or path.startswith('svn+ssh://-'):
3099 raise error.Abort(_('potentially unsafe url: %r') %
3099 raise error.Abort(_('potentially unsafe url: %r') %
3100 (path,))
3100 (pycompat.bytestr(path),))
3101
3101
3102 def hidepassword(u):
3102 def hidepassword(u):
3103 '''hide user credential in a url string'''
3103 '''hide user credential in a url string'''
General Comments 0
You need to be logged in to leave comments. Login now