浏览代码

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