prevent exception when entering empty string on domain check
Bernd Wurst

Bernd Wurst commited on 2025-06-16 14:37:06
Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.

... ...
@@ -32,7 +32,7 @@ $form = '<p>Domainname: <input type="text" name="domain" size="50" /> <input typ
32 32
 
33 33
 output(html_form('adddomain_search', '', '', $form));
34 34
 
35
-if (isset($_REQUEST['domain'])) {
35
+if (isset($_REQUEST['domain']) && trim($_REQUEST['domain']) != '') {
36 36
     $request = idn_to_utf8(trim($_REQUEST['domain']), 0, INTL_IDNA_VARIANT_UTS46);
37 37
     if (substr($request, 0, 4) == 'www.') {
38 38
         $request = str_replace('www.', '', $request);
39 39