Projet

Général

Profil

« Précédent | Suivant » 

Révision bef10560

Ajouté par Renato Botelho il y a presque 10 ans

Make sure single quotes are encoded and avoid javascript injection

Voir les différences:

usr/local/www/exec.php
108 108
	puts( "   var arrRecallBuffer = new Array(" );
109 109
	$arrBuffer = explode( "&", $_POST['txtRecallBuffer'] );
110 110
	for ($i=0; $i < (count( $arrBuffer ) - 1); $i++)
111
		puts( "      '" . htmlspecialchars($arrBuffer[$i]) . "'," );
112
	puts( "      '" . htmlspecialchars($arrBuffer[count( $arrBuffer ) - 1]) . "'" );
111
		puts( "      '" . htmlspecialchars($arrBuffer[$i], ENT_QUOTES | ENT_HTML401) . "'," );
112
	puts( "      '" . htmlspecialchars($arrBuffer[count( $arrBuffer ) - 1], ENT_QUOTES | ENT_HTML401) . "'" );
113 113
	puts( "   );" );
114 114
}
115 115

  

Formats disponibles : Unified diff