framework/base/CSecurityManager.php
public function unmaskToken($maskedToken)
	{
		$decoded=base64_decode(strtr($maskedToken,'-_','+/'));
		$length=$this->strlen($decoded)/2;
		// Check if the masked token has an even length.
		if(!is_int($length))
			return '';
		return $this->substr($decoded,$length,$length)^$this->substr($decoded,0,$length);
	}
public function unmaskToken($maskedToken)
	{
		$decoded=base64_decode(strtr($maskedToken,'-_','+/'));
		$length=$this->strlen($decoded)/2;
		// Check if the masked token has an even length.
		if(!is_int($length))
			return '';
		return $this->substr($decoded,$length,$length)^$this->substr($decoded,0,$length);
	}
public function unmaskToken ( $ maskedToken ) { $ decoded = base64_decode ( strtr ( $ maskedToken , '-_' , '+/' ) ) ; $ length = $ this -> strlen ( $ decoded ) / 2 ; // Check if the masked token has an even length. if ( ! is_int ( $ length ) ) return '' ; return $ this -> substr ( $ decoded , $ length , $ length ) ^ $ this -> substr ( $ decoded , 0 , $ length ) ; }
Unmasks a token previously masked by `maskToken`.
@param string $maskedToken A masked token.
@return string An unmasked token, or an empty string in case of token format is invalid.
@since 1.1.18
Unmasks a token previously masked by maskToken .