summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-03 23:50:29 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-03 23:50:29 +0000
commita204678976f6d3e47e564ffd194d42c5d9f9269a (patch)
tree201001dba0cd11cf81b9888076cc08a6c71f5c0c /usr
parent7306195d30b09926d1714558f35a04fbc7403895 (diff)
downloadpfsense-a204678976f6d3e47e564ffd194d42c5d9f9269a.zip
pfsense-a204678976f6d3e47e564ffd194d42c5d9f9269a.tar.gz
* Make sure $requests is an array
* Check $requests before imploding
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/fbegin.inc8
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);
OpenPOWER on IntegriCloud