Skip to content

Commit

Permalink
Fixed quoting bug reported by Itamar Shtull-Trauring
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Pelletier committed Feb 28, 2000
1 parent 6edf211 commit f12fb17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CatalogAwareness.py
Expand Up @@ -160,9 +160,9 @@ def url(self, ftype=urllib.splittype, fhost=urllib.splithost):
__traceback_info__=(`uri`, `script_name`)
if script_name:
uri=filter(None, string.split(uri, script_name))[0]
if uri[0] != '/': uri = '/' + uri
uri=uri or '/'
if uri[0]=='/': uri=uri[1:]
return uri
return urllib.unquote(uri)

def summary(self, num=200):
"""Return a summary of the text content of the object."""
Expand Down

0 comments on commit f12fb17

Please sign in to comment.