PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
← All changes | src/component/security-tweaks/servers/class-server.php +2 -2 5.6.2 → 6.3.0 View file →
@@ -61,9 +61,9 @@
61 61 * @return string Returns the server software type.
62 62 */
63 63 public static function get_software() {
64 64 $software = defender_get_data_from_request( 'SERVER_SOFTWARE', 's' );
65 - if ( empty( $software ) ) {
65 + if ( ! is_string( $software ) || '' === $software ) {
66 66 return self::get_software_by_self_ping();
67 67 }
68 68
69 69 $software = explode( ' ', $software );
@@ -86,9 +86,9 @@
86 86 if ( ! is_array( $server_type ) ) {
87 87 $server_type = array();
88 88 }
89 89
90 - if ( isset( $server_type[ $url ] ) && ! empty( $server_type[ $url ] ) ) {
90 + if ( isset( $server_type[ $url ] ) && is_string( $server_type[ $url ] ) && '' !== $server_type[ $url ] ) {
91 91 return strtolower( $server_type[ $url ] );
92 92 }
93 93
94 94 // Url should end with php.