diff --git a/.gitignore b/.gitignore index b0cdc822cb3..0574bbe5ccc 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,4 @@ data/ /maps/backup/* /maps/cyberiad.dmm.backup -/nano/debug.html \ No newline at end of file +/nano/debug.html diff --git a/code/__HELPERS/text.dm b/code/__HELPERS/text.dm index 15d93b5563f..98fc00c97b1 100644 --- a/code/__HELPERS/text.dm +++ b/code/__HELPERS/text.dm @@ -16,7 +16,7 @@ // 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, lentext(sqltext)-1);//Quote() adds quotes around input, we already do that + return copytext(sqltext, 2, lentext(sqltext));//Quote() adds quotes around input, we already do that /* * Text sanitization