Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
joules
Posts
Comments
C
C#
•
Created by joules on 10/15/2023 in
#help
❔ Is this enough to clean a database entry?
I'm entering user-defined text into an SQL table but dont want my tables getting dropped. Does this work?
if
(unsafeText.
Contains
(
'
\'
'
,
'
\"
'
,
'`'
))
{
//give error message
return
;
}
if
(unsafeText.
Contains
(
'
\'
'
,
'
\"
'
,
'`'
))
{
//give error message
return
;
}
13 replies