Content
I summary 111 Kiszed minden olyan elemet ami gondot okozhat a beviteli mezknel LoadwithFilternl hasznland WI summary sparam name"text"param returnsreturns public static string PreventSQLInjection (string dirtytext) Liststring disallowedtags new Liststring () OT " OR ", " and "" " not " AND " NOT ; elviekben mivel az elso szkznel elvagom igy nem maradhat benne and, or vagy not string cleartext dirtytext; if (cleartext.Contains (" "j) cleartext cleartext. Substring(0, cleartext. Indexof (" ") 1) . Trim() ; foreach (string tag in disallowedtags) cleartext cleartext. Replace (tag, ‘); return cleartext