Browse Source

Mailaccept need mail address (add domain)

tags/1.0.3
Victor Laborie 1 year ago
parent
commit
f1bee0b9e3
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      htdocs/lib/FormController.php

+ 6
- 0
htdocs/lib/FormController.php View File

@@ -98,6 +98,12 @@ class FormController {
,'mailaccept' => array('filter' => FILTER_DEFAULT, 'flags' => FILTER_FORCE_ARRAY)
), true);

self::$form['mailaccept'] = array_map(function($value) {
if (!empty($value)) {
return $value.'@'.self::$form['domain'];
}
}, self::$form['mailaccept']);

if (!empty(self::$form['password'])) { self::filterPassword(); }

unset($_POST);


Loading…
Cancel
Save