Jelajahi Sumber

fix potential xss woops

lolcat 1 tahun lalu
induk
melakukan
430c0a2f0f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      web.php

+ 1 - 1
web.php

@@ -89,7 +89,7 @@ if($results["spelling"]["type"] != "no_correction"){
 			'&' .
 			$frontend->buildquery($get, true) .
 			'&spellcheck=no">' .
-			$results["spelling"]["correction"] .
+			htmlspecialchars($results["spelling"]["correction"]) .
 			'</a>?' .
 		'</div>';
 }