addslashes to escape country names with quotes :/
这个提交包含在:
		
							父节点
							
								
									56b733314d
								
							
						
					
					
						当前提交
						f7fad2457e
					
				
					共有  1 个文件被更改,包括 1 次插入 和 1 次删除
				
			
		|  | @ -974,7 +974,7 @@ class Logbook_model extends CI_Model { | ||||||
|                 $d = $this->check_dxcc_table($row['COL_CALL']); |                 $d = $this->check_dxcc_table($row['COL_CALL']); | ||||||
|                 if ($d[0] != 'Not Found'){ |                 if ($d[0] != 'Not Found'){ | ||||||
|                     $sql = sprintf("update %s set COL_COUNTRY = '%s', COL_DXCC='%s' where COL_PRIMARY_KEY=%d", |                     $sql = sprintf("update %s set COL_COUNTRY = '%s', COL_DXCC='%s' where COL_PRIMARY_KEY=%d", | ||||||
|                                     $this->config->item('table_name'), $d[1], $d[0], $row['COL_PRIMARY_KEY']); |                                     $this->config->item('table_name'), addslashes($d[1]), $d[0], $row['COL_PRIMARY_KEY']); | ||||||
|                     $this->db->query($sql); |                     $this->db->query($sql); | ||||||
|                     //print($sql."\n");
 |                     //print($sql."\n");
 | ||||||
|                     printf("Updating %s to %s and %s\n<br/>", $row['COL_PRIMARY_KEY'], $d[1], $d[0]); |                     printf("Updating %s to %s and %s\n<br/>", $row['COL_PRIMARY_KEY'], $d[1], $d[0]); | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用