ソースを参照

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

Mark Crane 13 年 前
コミット
52de2893f2
1 ファイル変更1 行追加1 行削除
  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") {