# HG changeset patch # User Augie Fackler # Date 1520196955 18000 # Node ID ca201470abb4013a301a8e88051f966f23076308 # Parent 1f9bbd1d6b8ae4f7ea5d9f4310269a3b0242e7b0 util: fix unsafe url abort with bytestr() on url Differential Revision: https://phab.mercurial-scm.org/D2669 diff -r 1f9bbd1d6b8a -r ca201470abb4 mercurial/util.py --- a/mercurial/util.py Sun Mar 04 15:16:42 2018 -0500 +++ b/mercurial/util.py Sun Mar 04 15:55:55 2018 -0500 @@ -3097,7 +3097,7 @@ path = urlreq.unquote(path) if path.startswith('ssh://-') or path.startswith('svn+ssh://-'): raise error.Abort(_('potentially unsafe url: %r') % - (path,)) + (pycompat.bytestr(path),)) def hidepassword(u): '''hide user credential in a url string'''