mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 16:21:28 +00:00
fix #2 for mysql escape string
This commit is contained in:
@@ -51,7 +51,11 @@ function db_escape_string($s, $strip_tags = true, $link = NULL) {
|
|||||||
return pg_escape_string($s);
|
return pg_escape_string($s);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if ($link) {
|
||||||
return mysql_real_escape_string($s, $link);
|
return mysql_real_escape_string($s, $link);
|
||||||
|
} else {
|
||||||
|
return mysql_real_escape_string($s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user