myvesta/func
Jaap Marcus a493c140ce
Regex string threaded literally instead as regex
During shellcheck of Hestia source code I noticed the following error matching the line:
^----^ SC2076: Don't quote right-hand side of =~, it'll match literally rather than as a regex.
                                                                                      ^--------------^ SC2076: Don't quote right-hand side of =~, it'll match literally rather 
Proof of concept:
root@dev:~# v-add-web-domain jaap jaap..nu 
Error: nginx restart failed
root@dev:~# v-add-web-domain jaap jaap..nu 
Error: invalid domain format :: jaap..nu
2021-10-18 09:31:48 +02:00
..
db.sh Merge branch 'pr/86' 2020-08-19 14:10:12 +02:00
domain.sh Also checking "" in order to detect manually chunked record 2020-08-23 19:44:12 +02:00
handle_parameters.sh Create handle_parameters.sh 2020-07-19 01:43:59 +02:00
ip.sh protection in case there are two or more ips with the same nat association 2019-02-14 17:47:58 +02:00
main.php Update main.php 2020-08-30 05:14:41 +02:00
main.sh Regex string threaded literally instead as regex 2021-10-18 09:31:48 +02:00
rebuild.sh Define mail user in rebuild_mail_domain_conf() 2021-09-30 15:44:18 +02:00
remote.sh check if dns-sync is already running 2016-08-25 19:45:37 +03:00
string.php Update string.php 2020-08-30 05:15:23 +02:00