diff options
| author | 2015-05-15 03:21:36 +0200 | |
|---|---|---|
| committer | 2015-05-15 03:21:36 +0200 | |
| commit | 256c8613a4046931dcd28ab22b6aebe8752a98c2 (patch) | |
| tree | 2dbca039f47aec102a01e9a7d999fcfc26d294b4 /lib | |
| parent | f4b0661f3db9f0bafb97636808ddc2274010d440 (diff) | |
First draft of PubSubHubbub
https://github.com/FreshRSS/FreshRSS/issues/312
Requires setting base_url in config.php.
Currently using the filesystem (no change to the database)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lib_rss.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 6342011c8..191a58f35 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -446,3 +446,12 @@ function array_push_unique(&$array, $value) { function array_remove(&$array, $value) { $array = array_diff($array, array($value)); } + +//RFC 4648 +function base64url_encode($data) { + return strtr(rtrim(base64_encode($data), '='), '+/', '-_'); +} +//RFC 4648 +function base64url_decode($data) { + return base64_decode(strtr($data, '-_', '+/')); +} |
