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: ...@@ -160,9 +160,9 @@ class CatalogAware:
__traceback_info__=(`uri`, `script_name`) __traceback_info__=(`uri`, `script_name`)
if script_name: if script_name:
uri=filter(None, string.split(uri, script_name))[0] uri=filter(None, string.split(uri, script_name))[0]
if uri[0] != '/': uri = '/' + uri
uri=uri or '/' uri=uri or '/'
if uri[0]=='/': uri=uri[1:] return urllib.unquote(uri)
return uri
def summary(self, num=200): def summary(self, num=200):
"""Return a summary of the text content of the object.""" """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