File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 6969if (empty ($ v_letsencrypt )) {
7070 $ v_letsencrypt = "no " ;
7171}
72- $ v_ssl_home = $ data [$ v_domain ]["SSL_HOME " ];
73- $ v_backend_template = $ data [$ v_domain ]["BACKEND " ];
72+ $ v_ssl_home = $ data [$ v_domain ]["SSL_HOME " ] ?? "" ;
73+ $ v_backend_template = $ data [$ v_domain ]["BACKEND " ] ?? "" ;
7474$ v_nginx_cache = $ data [$ v_domain ]["FASTCGI_CACHE " ] ?? "" ;
7575$ v_nginx_cache_duration = $ data [$ v_domain ]["FASTCGI_DURATION " ] ?? "" ;
7676$ v_nginx_cache_check = "" ;
848848 if (empty ($ _POST ["v_ssl_key " ])) {
849849 $ errors [] = "ssl key " ;
850850 }
851- if (empty ($ _POST ["v_ssl_home " ])) {
852- $ errors [] = "ssl home " ;
853- }
854- $ v_ssl_home = quoteshellarg ($ _POST ["v_ssl_home " ]);
851+
855852 if (!empty ($ errors [0 ])) {
856853 foreach ($ errors as $ i => $ error ) {
857854 if ($ i == 0 ) {
885882 fwrite ($ fp , str_replace ("\r\n" , "\n" , $ _POST ["v_ssl_ca " ]));
886883 fclose ($ fp );
887884 }
885+ //keep using the original value for v_ssl_home
888886 exec (
889887 HESTIA_CMD .
890888 "v-add-web-domain-ssl " .
894892 " " .
895893 $ tmpdir .
896894 " " .
897- $ v_ssl_home .
895+ quoteshellarg ( $ v_ssl_home) .
898896 " 'no' " ,
899897 $ output ,
900898 $ return_var ,
You can’t perform that action at this time.
0 commit comments