From 32d549c1600a8b5bf6b2639fed9089cf0eb0082d Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 24 Jun 2012 02:51:13 +0000 Subject: [PATCH] Properly escape single quotes for sqlite this will fix the hangup_hook used with the fax dialplan entry. --- includes/lib_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/lib_functions.php b/includes/lib_functions.php index 6b2f514232..c8084e53bd 100644 --- a/includes/lib_functions.php +++ b/includes/lib_functions.php @@ -39,7 +39,7 @@ $string = sqlite_escape_string($string); } else { - $string = str_replace("''","'",$string); + $string = str_replace("'","''",$string); } } if ($db_type == "pgsql") {