branch | stable |
changeset 33658 | db83a1df03fe |
parent 33657 | 60ee7af2a2ba |
child 34022 | d5b2beca16c0 |
--- a/mercurial/subrepo.py Mon Jul 31 16:44:17 2017 -0700 +++ b/mercurial/subrepo.py Mon Jul 31 14:55:11 2017 -0700 @@ -1550,6 +1550,9 @@ def _fetch(self, source, revision): if self._gitmissing(): + # SEC: check for safe ssh url + util.checksafessh(source) + source = self._abssource(source) self.ui.status(_('cloning subrepo %s from %s\n') % (self._relpath, source))