From 0d491a1b0118fe1eae5f07ed48f42b9026f40379 Mon Sep 17 00:00:00 2001 From: Hao Date: Mon, 30 Jan 2023 16:49:15 +0800 Subject: [PATCH] fix: fix rapi key leak --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index a58f9d6..7f15beb 100644 --- a/functions.php +++ b/functions.php @@ -596,7 +596,7 @@ function get_word_anlytic($text) CURLOPT_POSTFIELDS => "text=".urlencode($text)."&lang=en", CURLOPT_HTTPHEADER => [ "X-RapidAPI-Host: text-analysis10.p.rapidapi.com", - "X-RapidAPI-Key: a895888271msh523e523a1941d5ap1d422cjsn6e642a197918", + "X-RapidAPI-Key: ".get_theme_mod('rapidapi_translator', ''), "content-type: application/x-www-form-urlencoded" ], ]);