Commit ee87740d authored by 's avatar

Added missing url-quoting to the absolute_url method.

parent fdf5f19f
...@@ -89,8 +89,8 @@ Aqueduct database adapters, etc. ...@@ -89,8 +89,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new This module can also be used as a simple template for implementing new
item types. item types.
$Id: SimpleItem.py,v 1.52 1999/05/18 15:47:03 jim Exp $''' $Id: SimpleItem.py,v 1.53 1999/05/24 16:55:38 brian Exp $'''
__version__='$Revision: 1.52 $'[11:-2] __version__='$Revision: 1.53 $'[11:-2]
import regex, sys, Globals, App.Management, Acquisition import regex, sys, Globals, App.Management, Acquisition
from webdav.Resource import Resource from webdav.Resource import Resource
...@@ -100,6 +100,7 @@ from CopySupport import CopySource ...@@ -100,6 +100,7 @@ from CopySupport import CopySource
from string import join, lower, find, split from string import join, lower, find, split
from types import InstanceType, StringType from types import InstanceType, StringType
from ComputedAttribute import ComputedAttribute from ComputedAttribute import ComputedAttribute
from urllib import quote
import marshal import marshal
...@@ -302,7 +303,7 @@ class Item(Base, Resource, CopySource, App.Management.Tabs): ...@@ -302,7 +303,7 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
obj=obj.aq_parent obj=obj.aq_parent
if not relative: url.append(self.aq_acquire('REQUEST').script) if not relative: url.append(self.aq_acquire('REQUEST').script)
url.reverse() url.reverse()
return join(url, '/') return quote(join(url, '/'))
def __len__(self): def __len__(self):
return 1 return 1
......
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