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
1271f003
Kaydet (Commit)
1271f003
authored
Haz 07, 2006
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Mention other placeholders
üst
12238d72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
whatsnew25.tex
Doc/whatsnew/whatsnew25.tex
+3
-2
No files found.
Doc/whatsnew/whatsnew25.tex
Dosyayı görüntüle @
1271f003
...
@@ -1923,10 +1923,11 @@ variables. You shouldn't assemble your query using Python's string
...
@@ -1923,10 +1923,11 @@ variables. You shouldn't assemble your query using Python's string
operations because doing so is insecure; it makes your program
operations because doing so is insecure; it makes your program
vulnerable to an SQL injection attack.
vulnerable to an SQL injection attack.
Instead, use
SQLite
's parameter substitution. Put
\samp
{
?
}
as a
Instead, use
the DB-API
's parameter substitution. Put
\samp
{
?
}
as a
placeholder wherever you want to use a value, and then provide a tuple
placeholder wherever you want to use a value, and then provide a tuple
of values as the second argument to the cursor's
\method
{
execute()
}
of values as the second argument to the cursor's
\method
{
execute()
}
method. For example:
method. (Other database modules may use a different placeholder,
such as
\samp
{
%s} or \samp{:1}.) For example:
\begin{verbatim}
\begin{verbatim}
# Never do this -- insecure!
# Never do this -- insecure!
...
...
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