mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Argument length increase. Fixes #165
This commit is contained in:
parent
3b7eee4393
commit
6bee67c723
1 changed files with 6 additions and 1 deletions
|
@ -740,11 +740,16 @@ validate_format_mhdmw() {
|
|||
# proxy extention or DNS record
|
||||
validate_format_common() {
|
||||
exclude="[!|#|$|^|&|(|)|+|=|{|}|:|<|>|?|/|\|\"|'|;|%|\`| ]"
|
||||
if [[ "$1" =~ $exclude ]] || [ 200 -le ${#1} ]; then
|
||||
if [[ "$1" =~ $exclude ]]; then
|
||||
echo "Error: $2 $1 is not valid"
|
||||
log_event "$E_INVALID" "$EVENT"
|
||||
exit $E_INVALID
|
||||
fi
|
||||
if [ 400 -le ${#1} ]; then
|
||||
echo "Error: $2 $1 is too long"
|
||||
log_event "$E_INVALID" "$EVENT"
|
||||
exit $E_INVALID
|
||||
fi
|
||||
}
|
||||
|
||||
# DNS record value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue