Ver Fonte

stop changing the fucking encoding of the motherfucking word corrector

lolcat há 2 meses atrás
pai
commit
72fc1ae080
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      scraper/startpage.php

+ 2 - 2
scraper/startpage.php

@@ -570,8 +570,8 @@ class startpage{
 						$out["spelling"] =
 							[
 								"type" => "including",
-								"using" => $json["render"]["query"],
-								"correction" => urldecode($category["results"][0]["query"])
+								"using" => rawurldecode($json["render"]["query"]),
+								"correction" => html_entity_decode($category["results"][0]["query"])
 							];
 					}
 					break;