Răsfoiți Sursa

stop changing the fucking encoding of the motherfucking word corrector

lolcat 2 luni în urmă
părinte
comite
72fc1ae080
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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;