Projet

Général

Profil

« Précédent | Suivant » 

Révision ec3cedf7

Ajouté par Bill Marquette il y a plus de 16 ans

Ticket #1476 - use convert multibyte instead of just specialchars

Voir les différences:

usr/local/www/firewall_aliases_edit.php
239 239
				   Pulling details here lets us only pull in details for valid
240 240
				   address entries, saving us from having to track which ones to
241 241
				   process later. */
242
	       $comd = "\$final_address_detail = htmlentities( \$_POST['detail" . $x . "'], ENT_QUOTES, 'UTF-8' );";
242
	       $comd = "\$final_address_detail = mb_convert_encoding(\$_POST['detail" . $x . "'],'HTML_ENTITIES','auto');";
243 243
	       eval($comd);
244 244
	       if($final_address_detail <> "") {
245 245
	       $final_address_details .= $final_address_detail;
......
254 254

  
255 255
	if (!$input_errors) {
256 256
		$alias['address'] = $address;
257
		$alias['descr'] = htmlentities($_POST['descr'], ENT_QUOTES, 'UTF-8');
257
		$alias['descr'] = mb_convert_encoding($_POST['descr'],"HTML-ENTITIES","auto");
258 258
		$alias['type'] = $_POST['type'];
259 259
		$alias['detail'] = $final_address_details;
260 260

  
......
274 274
	//we received input errors, copy data to prevent retype
275 275
	else
276 276
	{
277
		$pconfig['descr'] = htmlentities($_POST['descr'], ENT_QUOTES, 'UTF-8');
277
		$pconfig['descr'] = mb_convert_encoding($_POST['descr'],"HTML-ENTITIES","auto");
278 278
		$pconfig['address'] = $address;
279 279
		$pconfig['type'] = $_POST['type'];
280
		$pconfig['detail'] = $final_address_details;;
280
		$pconfig['detail'] = $final_address_details;
281 281
	}
282 282
}
283 283

  

Formats disponibles : Unified diff