Passed
Push — smarty5 ( d2d462...e191ca )
by Simon
10:11 queued 06:07
created
redir.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,17 +44,14 @@
 block discarded – undo
44 44
             echo 'Error resolving hostname, it doesn\'t look like this domain exists.';
45 45
             die();
46 46
         }
47
-    }
48
-    elseif (filter_var($data, FILTER_VALIDATE_IP) !== false) {
47
+    } elseif (filter_var($data, FILTER_VALIDATE_IP) !== false) {
49 48
         // IP address, we don't need to encode it.
50 49
         // It *should* already be safe.
51
-    }
52
-    else {
50
+    } else {
53 51
         $data = urlencode($data);
54 52
     }
55 53
 
56 54
     echo '<script>window.location.href=' . json_encode(str_replace("%DATA%", $data, $toolList[$tool])) . '</script>';
57
-}
58
-else {
55
+} else {
59 56
     header("Location: " . $_SERVER["REQUEST_URI"] . "&round2=true");
60 57
 }
Please login to merge, or discard this patch.
smarty-plugins/modifier.cidr.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
         $network = $ipLong & $mask;
32 32
 
33 33
         return long2ip($network);
34
-    }
35
-    elseif (filter_var($ipAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
34
+    } elseif (filter_var($ipAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
36 35
         if ($cidr === null) {
37 36
             $cidr = 64;
38 37
         }
Please login to merge, or discard this patch.