Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-01-05 01:22:56 +0300
committernachoparker <nacho@ownyourbits.com>2019-01-05 04:14:53 +0300
commitc842e00399cb298667fe177dbab825e17b4b21a0 (patch)
tree55a80c3a09b9c4151fad10966d301b314dbec37d /etc
parent7dd482893854079cbaf62671166a75330e3141dd (diff)
sanitize params
Diffstat (limited to 'etc')
-rw-r--r--etc/library.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/library.sh b/etc/library.sh
index 0282b9e7..02450bba 100644
--- a/etc/library.sh
+++ b/etc/library.sh
@@ -61,7 +61,7 @@ function configure_app()
for (( i = 0 ; i < len ; i++ )); do
# check for invalid characters
- grep -q "[;&[:space:]]" <<< "${ret_vals[$i]}" && { echo "Invalid characters in field ${vars[$i]}"; break; }
+ grep -q '[\\&#;`|*?~<>^()[{}$&[:space:]]' <<< "${ret_vals[$i]}" && { echo "Invalid characters in field ${vars[$i]}"; return 1; }
cfg="$(jq ".params[$i].value = \"${ret_vals[$i]}\"" <<<"$cfg")"
done