[tor-commits] [tor/master] Tougher validation for parsing urls from HTTP headers. Fixes #2767.