diff options
author | friendica <info@friendica.com> | 2012-01-24 16:45:58 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-01-24 16:45:58 -0800 |
commit | 8ff2bb4cd3c8c9da764d80b195c150c662d86a8d (patch) | |
tree | dc633109220ea5b64515e205d3f147090f8b9a5f /include/text.php | |
parent | 3a1a4d62d95c63322ea5b9b91a0ad44f1b5a0e5c (diff) | |
download | volse-hubzilla-8ff2bb4cd3c8c9da764d80b195c150c662d86a8d.tar.gz volse-hubzilla-8ff2bb4cd3c8c9da764d80b195c150c662d86a8d.tar.bz2 volse-hubzilla-8ff2bb4cd3c8c9da764d80b195c150c662d86a8d.zip |
backtrace errant input to base64url_decode
Diffstat (limited to 'include/text.php')
-rwxr-xr-x | include/text.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index bca219658..5f4adb27c 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 |