Эх сурвалжийг харах

Properly escape single quotes for sqlite this will fix the hangup_hook used with the fax dialplan entry.

Mark Crane 13 жил өмнө
parent
commit
52de2893f2

+ 1 - 1
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") {