aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeradius2/freeradius_view_config.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/freeradius2/freeradius_view_config.php')
-rw-r--r--config/freeradius2/freeradius_view_config.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/freeradius2/freeradius_view_config.php b/config/freeradius2/freeradius_view_config.php
index a1943653..bfabd7fa 100644
--- a/config/freeradius2/freeradius_view_config.php
+++ b/config/freeradius2/freeradius_view_config.php
@@ -1,7 +1,7 @@
<?php
/*
freeradius_view_config.php
- part of pfSense (http://www.pfsense.com/)
+ part of pfSense (https://www.pfsense.org/)
Copyright (C) 2013 Alexander Wilke <nachtfalkeaw@web.de>
Copyright (C) 2011 Marcello Coutinho <marcellocoutinho@gmail.com>
based on postfix_view_config.php
@@ -67,8 +67,8 @@ if ($_REQUEST['file']!=""){
get_file($_REQUEST['file']);
}
else{
- $pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
- if(strstr($pfSversion, "1.2"))
+ $pf_version=substr(trim(file_get_contents("/etc/version")),0,3);
+ if ($pf_version < 2.0)
$one_two = true;
$pgtitle = "FreeRADIUS: View Configuration";