]> git.wh0rd.org - tt-rss.git/blobdiff - db.php
fix some brackets issues in feed editor
[tt-rss.git] / db.php
diff --git a/db.php b/db.php
index c72bbd9dfab89ac7f78bcfc3a8c6007ab1dc52a7..e4673f679c4ed476531ee76ef93c08f73a981ab8 100644 (file)
--- a/db.php
+++ b/db.php
@@ -103,6 +103,12 @@ function db_fetch_result($result, $row, $param) {
        }
 }
 
+function db_unescape_string($str) {
+       $tmp = str_replace("\\\"", "\"", $str);
+       $tmp = str_replace("\\'", "'", $tmp);
+       return $tmp;
+}
+
 function db_close($link) {
        if (DB_TYPE == "pgsql") {