mirror of
				https://git.tt-rss.org/fox/tt-rss.git
				synced 2025-10-31 11:51:17 +01:00 
			
		
		
		
	labels editor: fix quote-escaping
This commit is contained in:
		
							parent
							
								
									14b6c54b03
								
							
						
					
					
						commit
						5b10ad15e7
					
				| @ -150,7 +150,7 @@ | |||||||
| 
 | 
 | ||||||
| 		if ($subop == "editSave") { | 		if ($subop == "editSave") { | ||||||
| 
 | 
 | ||||||
| 			$sql_exp = trim($_GET["sql_exp"]); | 			$sql_exp = db_escape_string(trim($_GET["sql_exp"])); | ||||||
| 			$descr = db_escape_string(trim($_GET["description"])); | 			$descr = db_escape_string(trim($_GET["description"])); | ||||||
| 			$label_id = db_escape_string($_GET["id"]); | 			$label_id = db_escape_string($_GET["id"]); | ||||||
| 			 | 			 | ||||||
| @ -180,8 +180,7 @@ | |||||||
| 
 | 
 | ||||||
| 		if ($subop == "add") { | 		if ($subop == "add") { | ||||||
| 
 | 
 | ||||||
| 			// no escaping is done here on purpose
 | 			$sql_exp = db_escape_string(trim($_GET["sql_exp"])); | ||||||
| 			$sql_exp = trim($_GET["sql_exp"]); |  | ||||||
| 			$description = db_escape_string($_GET["description"]); | 			$description = db_escape_string($_GET["description"]); | ||||||
| 
 | 
 | ||||||
| 			if (!$sql_exp || !$description) return; | 			if (!$sql_exp || !$description) return; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user