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
2a75dd01
Commit
2a75dd01
authored
Nov 30, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed cgi_hotfix since cgi.py is fixed for Python 2.1.3 and latest
Python 2.2.X version
parent
766d3a96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
31 deletions
+1
-31
lib/python/ZPublisher/HTTPRequest.py
lib/python/ZPublisher/HTTPRequest.py
+1
-5
lib/python/ZPublisher/cgi_hotfix.py
lib/python/ZPublisher/cgi_hotfix.py
+0
-26
No files found.
lib/python/ZPublisher/HTTPRequest.py
View file @
2a75dd01
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__version__
=
'$Revision: 1.8
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
5
$'
[
11
:
-
2
]
import
re
,
sys
,
os
,
urllib
,
time
,
random
,
cgi
,
codecs
from
types
import
StringType
,
UnicodeType
...
...
@@ -25,10 +25,6 @@ from TaintedString import TaintedString
from
maybe_lock
import
allocate_lock
xmlrpc
=
None
# Placeholder for module that we'll import if we have to.
#cgi hotfix:
if
not
hasattr
(
cgi
,
'valid_boundary'
):
import
cgi_hotfix
isCGI_NAME
=
{
'SERVER_SOFTWARE'
:
1
,
'SERVER_NAME'
:
1
,
...
...
lib/python/ZPublisher/cgi_hotfix.py
deleted
100644 → 0
View file @
766d3a96
def
set_read_multi
():
import
re
global
valid_boundary
valid_boundary
=
re
.
compile
(
"^[ -~]{0,200}[!-~]$"
).
match
def
read_multi
(
self
,
environ
,
keep_blank_values
,
strict_parsing
):
"""Internal: read a part that is itself multipart."""
ib
=
self
.
innerboundary
if
not
valid_boundary
(
ib
):
raise
ValueError
,
(
'Invalid boundary in multipart form: %s'
%
`ib`
)
self
.
list
=
[]
klass
=
self
.
FieldStorageClass
or
self
.
__class__
part
=
klass
(
self
.
fp
,
{},
ib
,
environ
,
keep_blank_values
,
strict_parsing
)
# Throw first part away
while
not
part
.
done
:
headers
=
rfc822
.
Message
(
self
.
fp
)
part
=
klass
(
self
.
fp
,
headers
,
ib
,
environ
,
keep_blank_values
,
strict_parsing
)
self
.
list
.
append
(
part
)
self
.
skip_lines
()
FieldStorage
.
read_multi
=
read_multi
import
cgi
exec
set_read_multi
.
func_code
in
cgi
.
__dict__
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