diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-01-21 16:49:35 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-01-21 16:49:35 -0200 |
commit | 5459701254d951eff2e46250deb76b9504a07fb8 (patch) | |
tree | be5fa09cbeda93c409734e518a8c583721827a0b /etc/inc/pfsense-utils.inc | |
parent | 613a94b31bf0444017c6fe3cbe06f4746da61e76 (diff) | |
download | pfsense-5459701254d951eff2e46250deb76b9504a07fb8.zip pfsense-5459701254d951eff2e46250deb76b9504a07fb8.tar.gz |
Replace regex by explode as suggested by Ermal
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 1c4936c..90e2743 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1628,7 +1628,8 @@ function isvm() { } function get_freebsd_version() { - return preg_replace('/\..*$/', '', php_uname("r")); + $version = explode(".", php_uname("r")); + return $version[0]; } function download_file($url, $destination, $verify_ssl = false, $connect_timeout = 60, $timeout = 0) { |