backtrace errant input to base64url_decode
This commit is contained in:
		
					parent
					
						
							
								3a1a4d62d9
							
						
					
				
			
			
				commit
				
					
						8ff2bb4cd3
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue