1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-30 11:37:10 +00:00

db_escape_string: remove tags by default (refs #323)

This commit is contained in:
Andrew Dolgov
2011-02-19 16:55:36 +03:00
parent 6853521166
commit c7a8deacd9
2 changed files with 4 additions and 2 deletions

4
db.php
View File

@@ -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 {