Thread: xBtiT v2.5.4
View Single Post
  #62  
Old 30th April 2013, 04:06
Yupy Yupy is offline
Senior Member
 
Join Date: Nov 2008
P2P
Posts: 36
Default
Replace in include/common.php:

Code:
function hex2bin ($input, $assume_safe=true)
   {
    if ($assume_safe !== true && ! ((strlen($input)%2) == 0 || preg_match ('/^[0-9a-f]+$/i', $input)))
          return '';
      return pack('H*', $input);
   }
With:

Code:
if(!function_exists("hex2bin"))
{
    function hex2bin ($input, $assume_safe=true)
    {
        if ($assume_safe !== true && ! ((strlen($input)%2) == 0 || preg_match ('/^[0-9a-f]+$/i', $input)))
            return '';
        return pack('H*', $input);
    }
}

Last edited by Yupy; 30th April 2013 at 04:06. Reason: Typo
Reply With Quote
The Following User Says Thank You to Yupy For This Useful Post:
ledjohnny (6th January 2015)