mirror of
https://git.bakhai.co.in/FbIN/4Get.git
synced 2025-11-05 12:31:30 +05:30
Synced
duckduckgo spelling fixx:(1a00bf8069) fix potential xss woops: (430c0a2f0f)
This commit is contained in:
parent
4b74db5af1
commit
fca29353aa
2 changed files with 2 additions and 2 deletions
|
|
@ -718,7 +718,7 @@ class ddg{
|
||||||
->getTextContent(
|
->getTextContent(
|
||||||
$json["suggestion"]
|
$json["suggestion"]
|
||||||
),
|
),
|
||||||
"correction" => $json["recourseText"]
|
"correction" => html_entity_decode($json["recourseText"])
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
web.php
2
web.php
|
|
@ -89,7 +89,7 @@ if($results["spelling"]["type"] != "no_correction"){
|
||||||
'&' .
|
'&' .
|
||||||
$frontend->buildquery($get, true) .
|
$frontend->buildquery($get, true) .
|
||||||
'&spellcheck=no">' .
|
'&spellcheck=no">' .
|
||||||
$results["spelling"]["correction"] .
|
htmlspecialchars($results["spelling"]["correction"]) .
|
||||||
'</a>?' .
|
'</a>?' .
|
||||||
'</div>';
|
'</div>';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue