diff options
Diffstat (limited to 'src/usr/local/www/services_captiveportal_filemanager.php')
-rw-r--r-- | src/usr/local/www/services_captiveportal_filemanager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/services_captiveportal_filemanager.php b/src/usr/local/www/services_captiveportal_filemanager.php index 68834a7..39a839a 100644 --- a/src/usr/local/www/services_captiveportal_filemanager.php +++ b/src/usr/local/www/services_captiveportal_filemanager.php @@ -115,7 +115,7 @@ if ($_POST) { if (is_uploaded_file($_FILES['new']['tmp_name'])) { - if (!stristr($_FILES['new']['name'], "captiveportal-")) { + if ((!stristr($_FILES['new']['name'], "captiveportal-")) && ($_FILES['new']['name'] != 'favicon.ico')) { $name = "captiveportal-" . $_FILES['new']['name']; } else { $name = $_FILES['new']['name']; @@ -278,6 +278,7 @@ endif; <div class="panel-body"> <?=gettext("Any files that are uploaded here with the filename prefix of captiveportal- will " . "be made available in the root directory of the captive portal HTTP(S) server. " . + "An icon file named favicon.ico may also be uploaded and will remain without prefix. " . "They may be referenced directly from the portal page HTML code using relative paths. " . "Example: An image uploaded with the name 'captiveportal-test.jpg' using the " . "file manager can then be included in the portal page like this:")?><br /><br /> |