tor2web / Tor2web

Tor2web is an HTTP proxy software that enables access to Tor Hidden Services by mean of common web browsers
https://www.tor2web.org
GNU Affero General Public License v3.0
705 stars 176 forks source link

added support for href="//xxxxx.onion/path/to/file.php" URLs #215

Closed virgil closed 9 years ago

virgil commented 9 years ago

I do a non-matching group for the http/https so that everything else stays the same as the previous regex.

evilaliv3 commented 9 years ago

@virgil can you please explain better the reason of this pull request?

virgil commented 9 years ago

I want to rewrite addresses like action="//xxxxxxx.onion/path/to/file.php"

Because these days you can use the // without the http://. Prior to this page the URLs beginning with a mere // didn't work.

evilaliv3 commented 9 years ago

i see. good patch, i've retested it and it implements what you say! :)

evilaliv3 commented 9 years ago

integrated manually.