From 157286714766688fa650ba740309ad443b827d1e Mon Sep 17 00:00:00 2001 From: John Bender Date: Thu, 10 Nov 2011 10:55:14 -0800 Subject: [PATCH] decode get params when refining stats data --- tests/speed/stats/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/speed/stats/index.php b/tests/speed/stats/index.php index cf81efcb..d90e13ac 100644 --- a/tests/speed/stats/index.php +++ b/tests/speed/stats/index.php @@ -6,8 +6,8 @@ // stats with a GET returns - wait for it - the stats, and a post with the // the right params will create a new entry if ( $_SERVER['REQUEST_METHOD'] == "GET" ) { - $agent = (empty($_GET['agent'])) ? '' : $_GET['agent']; - $data_point = (empty($_GET['data_point'])) ? '' : $_GET['data_point']; + $agent = (empty($_GET['agent'])) ? '' : urldecode($_GET['agent']); + $data_point = (empty($_GET['data_point'])) ? '' : urldecode($_GET['data_point']); $st = $db->prepare( ' SELECT agent, agent_version, point, avg(value) as avg_value,