From e8af54a476a7c311827700dd814b81b43b4180f5 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 22 Mar 2022 23:13:13 +0100 Subject: WebSub: Use hash instead of base64 to handle long URLs (#4282) * WebSub: Use hash instead of base64 to handle long URLs * Use 410 Gone (Part of the WebSub specification https://www.w3.org/TR/websub/ ) --- lib/lib_rss.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 9f931a0ac..6929b316c 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -700,15 +700,6 @@ function remove_query_by_get($get, $queries) { return $final_queries; } -//RFC 4648 -function base64url_encode($data) { - return strtr(rtrim(base64_encode($data), '='), '+/', '-_'); -} -//RFC 4648 -function base64url_decode($data) { - return base64_decode(strtr($data, '-_', '+/')); -} - function _i($icon, $url_only = false) { return FreshRSS_Themes::icon($icon, $url_only); } -- cgit v1.2.3