From 8ff2bb4cd3c8c9da764d80b195c150c662d86a8d Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 24 Jan 2012 16:45:58 -0800 Subject: [PATCH] backtrace errant input to base64url_decode --- include/text.php | 5 +++++ 1 file changed, 5 insertions(+) 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