diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-04 00:14:15 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-04 00:14:15 +0000 |
commit | 4824d8574dab56b829ffecfa16984fbf429dcb07 (patch) | |
tree | 90ef0c06d7a6f377856dcd0289703eed13f118ca /etc | |
parent | f4bca05a870aa249b962afc9900da8d2c8c1cfe8 (diff) | |
download | pfsense-4824d8574dab56b829ffecfa16984fbf429dcb07.zip pfsense-4824d8574dab56b829ffecfa16984fbf429dcb07.tar.gz |
Make sure the item passed is a string!
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 3cd99e2..989396b 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -607,6 +607,8 @@ function gather_altq_queue_stats($dont_return_root_queues) { * Useful for finding paths and stripping file extensions. */ function reverse_strrchr($haystack, $needle) { + if (!is_string($haystack)) + return; return strrpos($haystack, $needle) ? substr($haystack, 0, strrpos($haystack, $needle) +1 ) : false; } |