]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Limit the split() to 2 elements in lib/defaults.php3
authorkkalev <kkalev>
Tue, 15 Apr 2003 13:04:25 +0000 (13:04 +0000)
committerkkalev <kkalev>
Tue, 15 Apr 2003 13:04:25 +0000 (13:04 +0000)
Changelog
lib/defaults.php3

index 7fbd5de9856fe29b6a101b7b4ece68738270449f..78d543525ae179a4c1f6d097c609232b408afbc2 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -19,6 +19,7 @@ Ver 1.63:
 * Update the README file with notes about the scripts present in the bin folder
 * Add a <?php tag instead of a <?. Bug noted by Isam Ishaq <isam@planet.edu>
 * Add support for regexp and like operators in accounting report generator
+* Limit the split() to 2 elements in lib/defaults.php3
 Ver 1.62:
 * Remove one sql query from user_admin which was not needed.
 * Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime
index 80fa493abafcd4d9a5764637ba8559e5ceb9e6c0..6aec80cbf4aedaf31ed45fa66b859bcfe813b485 100644 (file)
@@ -5,7 +5,7 @@ if (!isset($text_default_vals)){
                $val=chop($val);
                if (ereg('^[[:space:]]*#',$val) || ereg('^[[:space:]]*$',$val))
                        continue;
-               list($key,$v)=split(":[[:space:]]*",$val);
+               list($key,$v)=split(":[[:space:]]*",$val,2);
                $text_default_vals["$key"][0]="$v";
                $text_default_vals["$key"]['count']++;
        }