diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-03 23:50:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-03 23:50:29 +0000 |
commit | a204678976f6d3e47e564ffd194d42c5d9f9269a (patch) | |
tree | 201001dba0cd11cf81b9888076cc08a6c71f5c0c /usr/local/www/fbegin.inc | |
parent | 7306195d30b09926d1714558f35a04fbc7403895 (diff) | |
download | pfsense-a204678976f6d3e47e564ffd194d42c5d9f9269a.zip pfsense-a204678976f6d3e47e564ffd194d42c5d9f9269a.tar.gz |
* Make sure $requests is an array
* Check $requests before imploding
Diffstat (limited to 'usr/local/www/fbegin.inc')
-rwxr-xr-x | usr/local/www/fbegin.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index d21031d..e0fe055 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -41,13 +41,17 @@ require_once("notices.inc"); if (are_notices_pending()) { $notices = get_notices(); + $requests=array(); + ## Get Query Arguments from URL ### foreach ($_REQUEST as $key => $value) { if ($key != "PHPSESSID") $requests[] = $key.'='.$value; } - $request_string = implode("&", $requests); - $request_string = $request_string . '&'; + if(is_array($requests)) + $request_string = implode("&", $requests); + // do we want a & on the end of the url? + //$request_string = $request_string . '&'; foreach ($notices as $key => $value) { $date = date("m-d-y H:i:s", $key); |