]> git.mxchange.org Git - friendica.git/commitdiff
backtrace errant input to base64url_decode
authorfriendica <info@friendica.com>
Wed, 25 Jan 2012 00:45:58 +0000 (16:45 -0800)
committerfriendica <info@friendica.com>
Wed, 25 Jan 2012 00:45:58 +0000 (16:45 -0800)
include/text.php

index bca219658cf4ab56662993ec314df2bf0ed23f1d..5f4adb27c3a60931393d6af4a934723d16b86ed7 100755 (executable)
@@ -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