From: friendica Date: Wed, 25 Jan 2012 00:45:58 +0000 (-0800) Subject: backtrace errant input to base64url_decode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8ff2bb4cd3c8c9da764d80b195c150c662d86a8d;p=friendica.git backtrace errant input to base64url_decode --- diff --git a/include/text.php b/include/text.php index bca219658c..5f4adb27c3 100755 --- a/include/text.php +++ b/include/text.php @@ -948,6 +948,11 @@ function base64url_encode($s, $strip_padding = false) { function base64url_decode($s) { + if(is_array($s)) { + logger('base64url_decode: illegal input: ' . print_r(debug_backtrace(), true)); + return $s; + } + /* * // Placeholder for new rev of salmon which strips base64 padding. * // PHP base64_decode handles the un-padded input without requiring this step