Message39076
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.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:11:16 | admin | link | issue522587 messages |
2007-08-23 15:11:16 | admin | create | |
|