summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-04 00:14:15 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-04 00:14:15 +0000
commit4824d8574dab56b829ffecfa16984fbf429dcb07 (patch)
tree90ef0c06d7a6f377856dcd0289703eed13f118ca
parentf4bca05a870aa249b962afc9900da8d2c8c1cfe8 (diff)
downloadpfsense-4824d8574dab56b829ffecfa16984fbf429dcb07.zip
pfsense-4824d8574dab56b829ffecfa16984fbf429dcb07.tar.gz
Make sure the item passed is a string!
-rw-r--r--etc/inc/pfsense-utils.inc2
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;
}
OpenPOWER on IntegriCloud