We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7eee4 commit 6bee67cCopy full SHA for 6bee67c
func/main.sh
@@ -740,11 +740,16 @@ validate_format_mhdmw() {
740
# proxy extention or DNS record
741
validate_format_common() {
742
exclude="[!|#|$|^|&|(|)|+|=|{|}|:|<|>|?|/|\|\"|'|;|%|\`| ]"
743
- if [[ "$1" =~ $exclude ]] || [ 200 -le ${#1} ]; then
+ if [[ "$1" =~ $exclude ]]; then
744
echo "Error: $2 $1 is not valid"
745
log_event "$E_INVALID" "$EVENT"
746
exit $E_INVALID
747
fi
748
+ if [ 400 -le ${#1} ]; then
749
+ echo "Error: $2 $1 is too long"
750
+ log_event "$E_INVALID" "$EVENT"
751
+ exit $E_INVALID
752
+ fi
753
}
754
755
# DNS record value
0 commit comments