reddit/reddit — pull request #235 by k21 (2011-10-18 21:37:42+00:00)
Title: Modified sanitize_url to accept IPv6 addresses

Also removed mailto from valid_schemes, because mailto: scheme would never get accepted as it could not pass the checks further in the function (according to urlparse, it does not contain a hostname).