Commit 6b73e55c authored by Michel Pelletier's avatar Michel Pelletier

Fixed quoting bug reported by Itamar Shtull-Trauring

parent 3688d0dc
......@@ -160,9 +160,9 @@ class CatalogAware:
__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."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment