Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
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
django
Commits
09c58981
Kaydet (Commit)
09c58981
authored
Agu 11, 2012
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[py3] Used smart_str to prevent regressions in http handling
üst
f10a1b06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
__init__.py
django/http/__init__.py
+4
-4
No files found.
django/http/__init__.py
Dosyayı görüntüle @
09c58981
...
...
@@ -61,14 +61,14 @@ else:
if
not
_cookie_allows_colon_in_names
:
def
load
(
self
,
rawdata
):
self
.
bad_cookies
=
set
()
super
(
SimpleCookie
,
self
)
.
load
(
str
(
rawdata
))
super
(
SimpleCookie
,
self
)
.
load
(
s
mart_s
tr
(
rawdata
))
for
key
in
self
.
bad_cookies
:
del
self
[
key
]
# override private __set() method:
# (needed for using our Morsel, and for laxness with CookieError
def
_BaseCookie__set
(
self
,
key
,
real_value
,
coded_value
):
key
=
str
(
key
)
key
=
s
mart_s
tr
(
key
)
try
:
M
=
self
.
get
(
key
,
Morsel
())
M
.
set
(
key
,
real_value
,
coded_value
)
...
...
@@ -85,7 +85,7 @@ from django.core.files import uploadhandler
from
django.http.multipartparser
import
MultiPartParser
from
django.http.utils
import
*
from
django.utils.datastructures
import
MultiValueDict
,
ImmutableList
from
django.utils.encoding
import
smart_bytes
,
iri_to_uri
,
force_text
from
django.utils.encoding
import
smart_bytes
,
smart_str
,
iri_to_uri
,
force_text
from
django.utils.http
import
cookie_date
from
django.utils
import
six
from
django.utils
import
timezone
...
...
@@ -137,7 +137,7 @@ def build_request_repr(request, path_override=None, GET_override=None,
except
:
meta
=
'<could not parse>'
path
=
path_override
if
path_override
is
not
None
else
request
.
path
return
str
(
'<
%
s
\n
path:
%
s,
\n
GET:
%
s,
\n
POST:
%
s,
\n
COOKIES:
%
s,
\n
META:
%
s>'
%
return
s
mart_s
tr
(
'<
%
s
\n
path:
%
s,
\n
GET:
%
s,
\n
POST:
%
s,
\n
COOKIES:
%
s,
\n
META:
%
s>'
%
(
request
.
__class__
.
__name__
,
path
,
six
.
text_type
(
get
),
...
...
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