瀏覽代碼

wordnik formatting fix

lolcat 2 月之前
父節點
當前提交
513bb666c5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scraper/ddg.php

+ 1 - 1
scraper/ddg.php

@@ -1763,7 +1763,7 @@ class ddg{
 					if(count($answer) !== 0){
 						
 						$out["answer"][] = [
-							"title" => ucfirst($word),
+							"title" => ucfirst(rawurldecode($word)),
 							"description" => $answer,
 							"url" => "https://www.wordnik.com/words/" . $word,
 							"thumb" => null,