fixes #2425 unescape API key name before returning

Added a call to stripslashes for the 'apikey_name' field to ensure it is unescaped before being returned. This improves display consistency for API key names containing escaped characters.
This commit is contained in:
Linty
2025-10-29 12:03:43 +01:00
parent d6a1cf0466
commit 99bb370b98

View File

@@ -2608,6 +2608,8 @@ SELECT
$api_key['apikey_secret'] = str_repeat("*", 40);
unset($api_key['auth_key_id'], $api_key['user_id'], $api_key['key_type']);
$api_key['apikey_name'] = stripslashes($api_key['apikey_name']);
$api_key['created_on_format'] = format_date($api_key['created_on'], array('day', 'month', 'year'));
$api_key['expired_on_format'] = format_date($api_key['expired_on'], array('day', 'month', 'year'));
$api_key['last_used_on_since'] =