Browse Source

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

Mark Crane 13 năm trước cách đây
mục cha
commit
52de2893f2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      includes/lib_functions.php

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