Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #65550 (get_browser() incorrectly parses entries with "+" sign) --INI-- brows..
Decoded Output download
--TEST--
Bug #65550 (get_browser() incorrectly parses entries with "+" sign)
--INI--
browscap={PWD}/browscap.ini
--FILE--
<?php
$user_agent = 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/522+ (KHTML, like Gecko, Safari/522) OmniWeb/v613';
$caps = get_browser($user_agent, true);
var_dump($caps['browser'], $caps['version']);
?>
--EXPECT--
string(7) "OmniWeb"
string(3) "5.6"
Did this file decode correctly?
Original Code
--TEST--
Bug #65550 (get_browser() incorrectly parses entries with "+" sign)
--INI--
browscap={PWD}/browscap.ini
--FILE--
<?php
$user_agent = 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/522+ (KHTML, like Gecko, Safari/522) OmniWeb/v613';
$caps = get_browser($user_agent, true);
var_dump($caps['browser'], $caps['version']);
?>
--EXPECT--
string(7) "OmniWeb"
string(3) "5.6"
Function Calls
get_browser | 1 |
Stats
MD5 | 3ddc8531e6b0ce117d227e4bcad10d96 |
Eval Count | 0 |
Decode Time | 90 ms |