Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/f4nt/django-cms-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Lauber committed Nov 4, 2009
2 parents 4be6c99 + 91ce9bf commit 3205b6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cms/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
urlpatterns = (
# Public pages
url(r'^$', details, {'slug':''}, name='pages-root'),
url(r'^(?P<slug>[0-9A-Za-z-_//]+)/$', details, name='pages-details-by-slug'),
url(r'^(?P<slug>[0-9A-Za-z-_.//]+)/$', details, name='pages-details-by-slug'),
)

if settings.CMS_APPLICATIONS_URLS:
Expand Down
4 changes: 2 additions & 2 deletions cms/utils/urlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.conf import settings

# checks validity of absolute / relative url
any_path_re = re.compile('^/?[a-zA-Z0-9_-]+(/[a-zA-Z0-9_-]+)*/?$')
any_path_re = re.compile('^/?[a-zA-Z0-9_.-]+(/[a-zA-Z0-9_.-]+)*/?$')

def levelize_path(path):
"""Splits given path to list of paths removing latest level in each step.
Expand Down Expand Up @@ -43,4 +43,4 @@ def urljoin(*segments):

if settings.APPEND_SLASH and not url.endswith("/"):
url += "/"
return url
return url

0 comments on commit 3205b6d

Please sign in to comment.