You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($dkim && $field_value[0]!='DOMAIN') return$this->get_error($validator['errmsg']);
65
-
}
66
-
67
-
/* Validator function for $_POST */
68
-
functionvalidate_post($key,$value) {
69
-
switch ($key) {
70
-
case'public':
71
-
if (preg_match("/(^-----BEGIN PUBLIC KEY-----)[a-zA-Z0-9\r\n\/\+=]{1,221}(-----END PUBLIC KEY-----(\n|\r)$)/",$value) === 1) { returntrue; } else { returnfalse; }
if ($dkim && $field_value[0]!='DOMAIN') return$this->get_error($validator['errmsg']);
75
+
}
76
+
77
+
/**
78
+
* Validator function for $_POST
79
+
*
80
+
* @return boolean - true if $POST contains a real key-file
81
+
*/
82
+
functionvalidate_post($key,$value) {
83
+
switch ($key) {
84
+
case'public':
85
+
if (preg_match("/(^-----BEGIN PUBLIC KEY-----)[a-zA-Z0-9\r\n\/\+=]{1,221}(-----END PUBLIC KEY-----(\n|\r)$)/",$value) === 1) { returntrue; } else { returnfalse; }
0 commit comments