1
0
Fork 0

Fix allowed_email()

- Reworked allowed_domain
- Added more variable checks to allowed_email() and
OEmbed::isAllowedURL()
This commit is contained in:
Hypolite Petovan 2018-01-07 19:10:09 -05:00
commit 4a20bcd6f0
3 changed files with 25 additions and 20 deletions

View file

@ -237,15 +237,15 @@ function register_content(App $a)
$license = '';
$o = get_markup_template("register.tpl");
$tpl = get_markup_template("register.tpl");
$arr = array('template' => $o);
$arr = array('template' => $tpl);
call_hooks('register_form', $arr);
$o = $arr['template'];
$tpl = $arr['template'];
$o = replace_macros($o, [
$o = replace_macros($tpl, [
'$oidhtml' => $oidhtml,
'$invitations' => Config::get('system', 'invitation_only'),
'$permonly' => $a->config['register_policy'] == REGISTER_APPROVE,