aboutsummaryrefslogtreecommitdiffstats
path: root/config/filer/filer.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-08-06 23:50:08 -0500
committerChris Buechler <cmb@pfsense.org>2015-08-06 23:50:08 -0500
commit08f9230429c97aeb777774049ac96dda38804534 (patch)
tree0e534373c5c90e4d332e8398f5ab99f56655b9c4 /config/filer/filer.inc
parentb9e71625272596e731c2e72f675d2c81691daa05 (diff)
parentd35ab996334be40d61a9ac2db78b408b00056c62 (diff)
downloadpfsense-packages-08f9230429c97aeb777774049ac96dda38804534.tar.gz
pfsense-packages-08f9230429c97aeb777774049ac96dda38804534.tar.bz2
pfsense-packages-08f9230429c97aeb777774049ac96dda38804534.zip
Merge pull request #944 from phil-davis/filer
Diffstat (limited to 'config/filer/filer.inc')
-rw-r--r--config/filer/filer.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/filer/filer.inc b/config/filer/filer.inc
index 3a012dd2..7b795acb 100644
--- a/config/filer/filer.inc
+++ b/config/filer/filer.inc
@@ -44,7 +44,7 @@ function sync_package_filer() {
if ($config['installedpackages']['filer']['config'] != "") {
$count = 0;
foreach ($config['installedpackages']['filer']['config'] as $file) {
- if ($file['filedata']=="" && file_exists($file['fullfile'])) {
+ if ($file['filedata'] == "" && file_exists($file['fullfile'])) {
$config['installedpackages']['filer']['config'][$count]['filedata'] = base64_encode(file_get_contents($file['fullfile']));
$file['filedata'] = base64_encode(file_get_contents($file['fullfile']));
$update_conf++;
@@ -65,10 +65,10 @@ function sync_package_filer() {
switch ($file['background']) {
case "background":
mwexec_bg($file['cmd']);
- break;
+ break;
case "foreground":
mwexec($file['cmd']);
- break;
+ break;
}
}
}
@@ -90,13 +90,13 @@ function filer_validate_input($post, &$input_errors) {
continue;
}
if (substr($key, 0, 3) == "mod" && !preg_match("/^0?[0-7]{3}$/", $value)) {
- $input_errors[] = "{$value} is not valid permissions mode number.";
+ $input_errors[] = "{$value} is not valid permissions mode number.";
}
if (substr($key, 0, 11) == "description" && !preg_match("@^[a-zA-Z0-9 _/.-]+$@", $value)) {
- $input_errors[] = "Do not use special characters in description.";
+ $input_errors[] = "Do not use special characters in description.";
}
if (substr($key, 0, 8) == "fullfile" && !preg_match("@^[a-zA-Z0-9_/.-]+$@", $value)) {
- $input_errors[] = "Do not use special characters in filename.";
+ $input_errors[] = "Do not use special characters in filename.";
}
}
}