diff options
author | Colin Smith <colin@pfsense.org> | 2005-07-22 04:11:38 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-07-22 04:11:38 +0000 |
commit | c2747f5ae58e8493e62b306a614ecd503934df0b (patch) | |
tree | b9ac4012d7f6017bc380e36dcfae5ee58dbf1ad3 | |
parent | 3a3c6b5ba10155dfb581ef8551d507a5712d1900 (diff) | |
download | pfsense-c2747f5ae58e8493e62b306a614ecd503934df0b.zip pfsense-c2747f5ae58e8493e62b306a614ecd503934df0b.tar.gz |
Committed to the wrong branch, revert.
-rw-r--r-- | etc/inc/pfsense-utils.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index bb055ca..ccbe302 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -491,8 +491,11 @@ function add_text_to_file($file, $text) { /* * get_filename_from_url($url): converts a url to its filename. */ + function get_filename_from_url($url) { - return array_pop(explode("/", $filename)); + $filenamesplit = split("/", $url); + foreach($filenamesplit as $fn) $filename = $fn; + return $filename; } /* |