This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bquinlan
Recipients
Date 2002-02-25.18:50:05
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The current URL matching pattern used by pydoc only 
excludes whitespace. My patch also excludes the 
following characters:

' & " - excludes the quotes in: <a href="...">
< & > - As stated in RFC-1738:

"""The characters "<" and ">" are unsafe because they 
are used as the delimiters around URLs in free text"""

We don't want to include the delimeters as part of the 
URL. And including unescaped "<" in an attribute value 
is not legal markup.

Also, remove the word boundary requirement for 
http/ftp URIs because otherwise the "/" would not be 
included in the following URL: "http://www.python.org/"

Attached is the patch and some simple test code.

History
Date User Action Args
2007-08-23 15:11:16adminlinkissue522587 messages
2007-08-23 15:11:16admincreate