summaryrefslogtreecommitdiff
path: root/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'db.php')
-rw-r--r--db.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/db.php b/db.php
index 844bd0e41..9b1ce5d84 100644
--- a/db.php
+++ b/db.php
@@ -41,7 +41,9 @@ function db_connect($host, $user, $pass, $db) {
}
}
-function db_escape_string($s) {
+function db_escape_string($s, $strip_tags = true) {
+ if ($strip_tags) $s = strip_tags($s);
+
if (DB_TYPE == "pgsql") {
return pg_escape_string($s);
} else {