mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
API for user favourites
This commit is contained in:
parent
15a3d9486e
commit
cad14057cc
4 changed files with 326 additions and 1 deletions
|
@ -670,7 +670,7 @@ validate_format_domain() {
|
|||
validate_format_domain_alias() {
|
||||
exclude="[!|@|#|$|^|&|(|)|+|=|{|}|:|,|<|>|?|_|/|\|\"|'|;|%|\`| ]"
|
||||
if [[ "$1" =~ $exclude ]] || [[ "$1" =~ "^[0-9]+$" ]]; then
|
||||
echo "Error: domain alias $1 is not valid"
|
||||
echo "Error: $2 $1 is not valid"
|
||||
log_event "$E_INVALID" "$EVENT"
|
||||
exit $E_INVALID
|
||||
fi
|
||||
|
@ -916,6 +916,7 @@ validate_format(){
|
|||
ns2) validate_format_domain "$arg" 'name_server';;
|
||||
ns3) validate_format_domain "$arg" 'name_server';;
|
||||
ns4) validate_format_domain "$arg" 'name_server';;
|
||||
object) validate_format_domain_alias "$arg" 'object';;
|
||||
package) validate_format_name "$arg" "$arg_name" ;;
|
||||
password) validate_format_password "$arg" ;;
|
||||
port) validate_format_int "$arg" 'port' ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue