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
fb42f412
Commit
fb42f412
authored
Oct 28, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed evil MSIE cookie handling.
parent
a956717d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+16
-12
No files found.
lib/python/ZPublisher/Publish.py
View file @
fb42f412
...
...
@@ -370,7 +370,7 @@ Publishing a module using CGI
containing the module to be published) to the module name in the
cgi-bin directory.
$Id: Publish.py,v 1.
59 1997/10/22 22:49:20 jim
Exp $"""
$Id: Publish.py,v 1.
60 1997/10/28 19:29:57 brian
Exp $"""
#'
# Copyright
#
...
...
@@ -425,7 +425,7 @@ $Id: Publish.py,v 1.59 1997/10/22 22:49:20 jim Exp $"""
# See end of file for change log.
#
##########################################################################
__version__
=
'$Revision: 1.
59
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
60
$'
[
11
:
-
2
]
def
main
():
...
...
@@ -1243,28 +1243,29 @@ isCGI_NAME = {
def
parse_cookie
(
text
,
result
=
None
,
parmre
=
regex
.
compile
(
q
parmre
=
regex
.
compile
(
'
\
([
\
0- ]*'
'
\
([^
\
0- ;,=
\
"
]+
\
)=
\
([^
\
0
- =
\
"
]+
\
)
'
'
\
([^
\
0- ;,=
\
"
]+
\
)=
"
\
([^
"
]*
\
)
\
"
'
'
\
([
\
0- ]*[;,]
\
)?[
\
0- ]*
\
)
'
),
q
parmre=regex.compile(
parmre=regex.compile(
'
\
([
\
0
-
]
*
'
'
\
([
^
\
0
-
;,
=
\
"]+
\
)=
"
\
([^
"
]*
\
)
\
"
'
'
\
([
^
\
0
-
;,
=
\
"]+
\
)=
\
([^
\
0
;-=
\
"
]*
\
)
'
'
\
([
\
0- ]*[;,]
\
)?[
\
0- ]*
\
)
'
),
):
if result is None: result={}
if parmre.match(text) >= 0:
name=parmre.group(2)
value=parmre.group(3)
l=len(parmre.group(1))
elif qparmre.match(text) >= 0:
if qparmre.match(text) >= 0:
# Match quoted correct cookies
name=qparmre.group(2)
value=qparmre.group(3)
l=len(qparmre.group(1))
elif parmre.match(text) >= 0:
# Match evil MSIE cookies ;)
name=parmre.group(2)
value=parmre.group(3)
l=len(parmre.group(1))
else:
if not text or not strip(text): return result
raise "
InvalidParameter
", text
...
...
@@ -1347,6 +1348,9 @@ def publish_module(module_name,
#
# $Log: Publish.py,v $
# Revision 1.60 1997/10/28 19:29:57 brian
# Fixed evil MSIE cookie handling.
#
# Revision 1.59 1997/10/22 22:49:20 jim
# Fixed bug in handling of container.spam__doc__.
#
...
...
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