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
a16b45d8
Commit
a16b45d8
authored
Jun 03, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checked in Guido's changes.
parent
6aeffd22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lib/python/ZPublisher/cgi.py
lib/python/ZPublisher/cgi.py
+4
-3
No files found.
lib/python/ZPublisher/cgi.py
View file @
a16b45d8
...
...
@@ -841,8 +841,10 @@ class FieldStorage:
# but it happens to be something we don't understand.
if
self
.
headers
.
has_key
(
'content-type'
):
ctype
,
pdict
=
parse_header
(
self
.
headers
[
'content-type'
])
el
se
:
el
if
self
.
outerboundary
or
method
!=
'POST'
:
ctype
,
pdict
=
"text/plain"
,
{}
else
:
ctype
,
pdict
=
'application/x-www-form-urlencoded'
,
{}
self
.
type
=
ctype
self
.
type_options
=
pdict
self
.
innerboundary
=
""
...
...
@@ -865,8 +867,7 @@ class FieldStorage:
self
.
read_urlencoded
()
elif
ctype
[:
10
]
==
'multipart/'
:
self
.
read_multi
(
environ
,
keep_blank_values
,
strict_parsing
)
elif
(
self
.
outerboundary
or
ctype
!=
'application/x-www-form-urlencoded'
):
elif
self
.
outerboundary
or
method
!=
'POST'
:
# we're in an inner part, but the content-type wasn't something we
# understood. default to read_single() because the resulting
# FieldStorage won't be a mapping (and doesn't need to be).
...
...
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