PluginProbe
Patchstack – WordPress & Plugins Security / 2.2.7
Patchstack – WordPress & Plugins Security v2.2.7
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
← All changes | includes/2fa/base32.php +5 -5 2.1.212.2.7 View file →
@@ -14,9 +14,9 @@
14 14 * @author Bryan Ruiz
15 15 **/
16 16 class Base32Static {
17 17
18 - private static $map = array(
18 + private static $map = [
19 19 'A',
20 20 'B',
21 21 'C',
22 22 'D',
@@ -48,11 +48,11 @@
48 48 '5',
49 49 '6',
50 50 '7', // 31
51 51 '=', // padding character
52 - );
52 + ];
53 53
54 - private static $flipped_map = array(
54 + private static $flipped_map = [
55 55 'A' => '0',
56 56 'B' => '1',
57 57 'C' => '2',
58 58 'D' => '3',
@@ -83,9 +83,9 @@
83 83 '4' => '28',
84 84 '5' => '29',
85 85 '6' => '30',
86 86 '7' => '31',
87 - );
87 + ];
88 88
89 89 /**
90 90 * Use padding false when encoding for urls
91 91 *
@@ -133,9 +133,9 @@
133 133 return;
134 134 }
135 135
136 136 $padding_char_count = substr_count( $input, self::$map[32] );
137 - $allowed_values = array( 6, 4, 3, 1, 0 );
137 + $allowed_values = [ 6, 4, 3, 1, 0 ];
138 138
139 139 if ( ! in_array( $padding_char_count, $allowed_values ) ) {
140 140 return false;
141 141 }