Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
74dbdb94
Commit
74dbdb94
authored
Sep 23, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed regular expressions for absolute URI in Redirect exception
handling to allow the protocol to be ommitted.
parent
54fedc41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
lib/python/ZPublisher/Response.py
lib/python/ZPublisher/Response.py
+7
-3
No files found.
lib/python/ZPublisher/Response.py
View file @
74dbdb94
'''CGI Response Output formatter
'''CGI Response Output formatter
$Id: Response.py,v 1.3
8 1998/09/09 18:03:14
jim Exp $'''
$Id: Response.py,v 1.3
9 1998/09/23 22:04:20
jim Exp $'''
#
#
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
# All rights reserved.
...
@@ -51,7 +51,7 @@ $Id: Response.py,v 1.38 1998/09/09 18:03:14 jim Exp $'''
...
@@ -51,7 +51,7 @@ $Id: Response.py,v 1.38 1998/09/09 18:03:14 jim Exp $'''
#
#
# (540) 371-6909
# (540) 371-6909
#
#
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
regex
import
string
,
types
,
sys
,
regex
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
,
translate
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
,
translate
...
@@ -430,7 +430,11 @@ class Response:
...
@@ -430,7 +430,11 @@ class Response:
def exception(self, fatal=0, info=None,
def exception(self, fatal=0, info=None,
absuri_match=regex.compile(
absuri_match=regex.compile(
"
[
a
-
zA
-
Z0
-
9
+
.
-
]
+
:[
^
\
0
-
\
"
\
#<>]+
\
(#[^
\
0
-
\
"
\
#<>]*
\
)?"
"
^
"
"
\
(
/
\
|
\
([
a
-
zA
-
Z0
-
9
+
.
-
]
+
:
\
)
\
)
"
"
[
^
\
000
-
\
"
\
\
#<>]*"
"
\
\
(#[^
\
000
-
\
"
\
\
#<>]*
\
\
)?"
"$"
).
match
,
).
match
,
tag_search
=
regex
.
compile
(
'[a-zA-Z]>'
).
search
,
tag_search
=
regex
.
compile
(
'[a-zA-Z]>'
).
search
,
):
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment