Skip to content

Commit 73dc9a9

Browse files
author
Alexander Smishlajev
committed
ignore leading zeroes in the ID part of a node designator
1 parent 57b9e27 commit 73dc9a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/cgi/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.191 2004-10-23 14:05:25 a1s Exp $
1+
# $Id: client.py,v 1.192 2004-10-25 10:43:20 a1s Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -409,7 +409,7 @@ def determine_user(self):
409409
# reopen the database as the correct user
410410
self.opendb(self.user)
411411

412-
def determine_context(self, dre=re.compile(r'([^\d]+)(\d+)')):
412+
def determine_context(self, dre=re.compile(r'([^\d]+)0*(\d+)')):
413413
"""Determine the context of this page from the URL:
414414
415415
The URL path after the instance identifier is examined. The path

0 commit comments

Comments
 (0)