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
f14730a4
Kaydet (Commit)
f14730a4
authored
Ara 31, 2002
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- correct the deprecation markups so this formats again
- some minor cleanups
üst
c8b2e770
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
libcookie.tex
Doc/lib/libcookie.tex
+7
-9
No files found.
Doc/lib/libcookie.tex
Dosyayı görüntüle @
f14730a4
...
...
@@ -19,12 +19,12 @@ specs. As a result, the parsing rules used are a bit less strict.
\begin{excdesc}
{
CookieError
}
Exception failing because of
\rfc
{
2109
}
invalidity: incorrect
attributes, incorrect
\
code
{
Set-Cookie
}
header, etc.
attributes, incorrect
\
mimeheader
{
Set-Cookie
}
header, etc.
\end{excdesc}
\begin{classdesc}
{
BaseCookie
}{
\optional
{
input
}}
This class is a dictionary-like object whose keys are strings and
whose values are
\class
{
Morsel
}
s. Note that upon setting a key to
whose values are
\class
{
Morsel
}
instance
s. Note that upon setting a key to
a value, the value is first converted to a
\class
{
Morsel
}
containing
the key and the value.
...
...
@@ -40,13 +40,12 @@ and \function{str()} respectively.
\begin{classdesc}
{
SerialCookie
}{
\optional
{
input
}}
This class derives from
\class
{
BaseCookie
}
and overrides
\method
{
value
_
decode()
}
and
\method
{
value
_
encode()
}
to be the
\function
{
pickle.loads()
}
and
\function
{
pickle.dumps()
}
.
\function
{
pickle.loads()
}
and
\function
{
pickle.dumps()
}
.
\
strong
{
Do not use this class!
}
Reading pickled values from untrusted
\
deprecated
{
2.3
}{
Reading pickled values from untrusted
cookie data is a huge security hole, as pickle strings can be crafted
to cause arbitrary code to execute on your server. It is supported
for backwards compatibility only, and may eventually go away.
\deprecated
{
2.3
}
for backwards compatibility only, and may eventually go away.
}
\end{classdesc}
\begin{classdesc}
{
SmartCookie
}{
\optional
{
input
}}
...
...
@@ -56,9 +55,8 @@ valid pickle, and otherwise the value itself. It overrides
\method
{
value
_
encode()
}
to be
\function
{
pickle.dumps()
}
unless it is a
string, in which case it returns the value itself.
\strong
{
Note:
}
The same security warning from
\class
{
SerialCookie
}
applies here.
\deprecated
{
2.3
}
\deprecated
{
2.3
}{
The same security warning from
\class
{
SerialCookie
}
applies here.
}
\end{classdesc}
A further security note is warranted. For backwards compatibility,
...
...
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