Browse Source

backtrace errant input to base64url_decode

pull/29/head
friendica 9 years ago
parent
commit
8ff2bb4cd3
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      include/text.php

+ 5
- 0
include/text.php View File

@ -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


Loading…
Cancel
Save