Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
3a703b60
Kaydet (Commit)
3a703b60
authored
Eyl 19, 2005
tarafından
Armin Rigo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reverted revision 1.83, which introduced a bug and subtle incompatibility
issues. See bug #1112856.
üst
cfe7dd96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
cgi.py
Lib/cgi.py
+6
-8
No files found.
Lib/cgi.py
Dosyayı görüntüle @
3a703b60
...
@@ -38,7 +38,8 @@ from operator import attrgetter
...
@@ -38,7 +38,8 @@ from operator import attrgetter
import
sys
import
sys
import
os
import
os
import
urllib
import
urllib
import
email.Parser
import
mimetools
import
rfc822
import
UserDict
import
UserDict
try
:
try
:
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
...
@@ -107,8 +108,6 @@ log = initlog # The current logging function
...
@@ -107,8 +108,6 @@ log = initlog # The current logging function
# Parsing functions
# Parsing functions
# =================
# =================
_header_parser
=
email
.
Parser
.
HeaderParser
()
# Maximum input we will accept when REQUEST_METHOD is POST
# Maximum input we will accept when REQUEST_METHOD is POST
# 0 ==> unlimited input
# 0 ==> unlimited input
maxlen
=
0
maxlen
=
0
...
@@ -271,7 +270,7 @@ def parse_multipart(fp, pdict):
...
@@ -271,7 +270,7 @@ def parse_multipart(fp, pdict):
data
=
None
data
=
None
if
terminator
:
if
terminator
:
# At start of next part. Read headers first.
# At start of next part. Read headers first.
headers
=
_header_parser
.
pars
e
(
fp
)
headers
=
mimetools
.
Messag
e
(
fp
)
clength
=
headers
.
getheader
(
'content-length'
)
clength
=
headers
.
getheader
(
'content-length'
)
if
clength
:
if
clength
:
try
:
try
:
...
@@ -408,9 +407,8 @@ class FieldStorage:
...
@@ -408,9 +407,8 @@ class FieldStorage:
disposition_options: dictionary of corresponding options
disposition_options: dictionary of corresponding options
headers: a dictionary(-like) object (sometimes
headers: a dictionary(-like) object (sometimes rfc822.Message or a
email.Message.Message or a subclass thereof) containing *all*
subclass thereof) containing *all* headers
headers
The class is subclassable, mostly for the purpose of overriding
The class is subclassable, mostly for the purpose of overriding
the make_file() method, which is called internally to come up with
the make_file() method, which is called internally to come up with
...
@@ -652,7 +650,7 @@ class FieldStorage:
...
@@ -652,7 +650,7 @@ class FieldStorage:
environ
,
keep_blank_values
,
strict_parsing
)
environ
,
keep_blank_values
,
strict_parsing
)
# Throw first part away
# Throw first part away
while
not
part
.
done
:
while
not
part
.
done
:
headers
=
_header_parser
.
pars
e
(
self
.
fp
)
headers
=
rfc822
.
Messag
e
(
self
.
fp
)
part
=
klass
(
self
.
fp
,
headers
,
ib
,
part
=
klass
(
self
.
fp
,
headers
,
ib
,
environ
,
keep_blank_values
,
strict_parsing
)
environ
,
keep_blank_values
,
strict_parsing
)
self
.
list
.
append
(
part
)
self
.
list
.
append
(
part
)
...
...
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