duckduckgo spelling fixx:(1a00bf8069)

fix potential xss woops: (430c0a2f0f)
This commit is contained in:
FbIN Support 2025-07-11 16:52:56 +05:30
commit fca29353aa
2 changed files with 2 additions and 2 deletions

View file

@ -718,7 +718,7 @@ class ddg{
->getTextContent(
$json["suggestion"]
),
"correction" => $json["recourseText"]
"correction" => html_entity_decode($json["recourseText"])
];
}
}

View file

@ -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>';
}