浏览代码

fix potential xss woops

lolcat 1 年之前
父节点
当前提交
430c0a2f0f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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>';
 }