avoid double escapes
This commit is contained in:
		
							parent
							
								
									cf51d26d1a
								
							
						
					
					
						commit
						ce488eb7e9
					
				@ -304,7 +304,7 @@ class Image {
 | 
				
			|||||||
	 */
 | 
						 */
 | 
				
			||||||
	public function get_tooltip() {
 | 
						public function get_tooltip() {
 | 
				
			||||||
		global $config;
 | 
							global $config;
 | 
				
			||||||
		return $this->parse_link_template($config->get_string('image_tip'), "html_escape");
 | 
							return $this->parse_link_template($config->get_string('image_tip'), "no_escape");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
 | 
				
			|||||||
@ -46,6 +46,16 @@ function sql_escape($input) {
 | 
				
			|||||||
	return $database->db->Quote($input);
 | 
						return $database->db->Quote($input);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Some functions require a callback function for escaping,
 | 
				
			||||||
 | 
					 * but we might not want to alter the data
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * @retval string
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					function no_escape($input) {
 | 
				
			||||||
 | 
						return $input;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Turn a human readable filesize into an integer, eg 1KB -> 1024
 | 
					 * Turn a human readable filesize into an integer, eg 1KB -> 1024
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user