Projet

Général

Profil

« Précédent | Suivant » 

Révision 8aca755a

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
107 107
	puts( "   var arrRecallBuffer = new Array(" );
108 108
	$arrBuffer = explode( "&", $_POST['txtRecallBuffer'] );
109 109
	for ($i=0; $i < (count( $arrBuffer ) - 1); $i++)
110
		puts( "      '" . htmlspecialchars($arrBuffer[$i]) . "'," );
111
	puts( "      '" . htmlspecialchars($arrBuffer[count( $arrBuffer ) - 1]) . "'" );
110
		puts( "      '" . htmlspecialchars($arrBuffer[$i], ENT_QUOTES | ENT_HTML401) . "'," );
111
	puts( "      '" . htmlspecialchars($arrBuffer[count( $arrBuffer ) - 1], ENT_QUOTES | ENT_HTML401) . "'" );
112 112
	puts( "   );" );
113 113
}
114 114

  

Formats disponibles : Unified diff