From 54cf5bb0560eeee99fa80ce3b913a962799b23a4 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 12 Sep 2017 23:56:20 +0900 Subject: [PATCH] Add comment about base64_encode_urlsafe() --- common/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/functions.php b/common/functions.php index 80a9dfbc4..148c6b25f 100644 --- a/common/functions.php +++ b/common/functions.php @@ -359,6 +359,9 @@ function force_range($input, $min, $max) /** * This function encodes a string with base64, using a URL-safe character set. * + * The choice of alternative characters is defined in RFC 4648 Section 5. + * Do not use substitute other characters such as the dot (.) or the tilde (~). + * * @param string $str The string to encode * @return string */