mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Porting TG's SQL
This commit is contained in:
@@ -14,9 +14,11 @@
|
||||
*/
|
||||
|
||||
// Run all strings to be used in an SQL query through this proc first to properly escape out injection attempts.
|
||||
/proc/sanitizeSQL(var/t as text)
|
||||
var/sqltext = dbcon.Quote(t);
|
||||
return copytext(sqltext, 2, length(sqltext));//Quote() adds quotes around input, we already do that
|
||||
/proc/sanitizeSQL(var/t as text)
|
||||
//var/sqltext = dbcon.Quote(t); //CHOMPEdit Begin
|
||||
//return copytext(sqltext, 2, length(sqltext));//Quote() adds quotes around input, we already do that
|
||||
return t
|
||||
//CHOMPEdit End
|
||||
|
||||
/*
|
||||
* Text sanitization
|
||||
|
||||
Reference in New Issue
Block a user