Просмотр исходного кода

stop changing the fucking encoding of the motherfucking word corrector

lolcat 2 месяцев назад
Родитель
Сommit
72fc1ae080
1 измененных файлов с 2 добавлено и 2 удалено
  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;