1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 10:44:20 +02:00

[ticket/12926] Support for IDN (IRI)

Add international domain name support for URLs.

PHPBB3-12926
This commit is contained in:
rxu
2014-11-25 22:16:30 +07:00
parent ee90d227c2
commit a8c62e707a
7 changed files with 272 additions and 9 deletions

View File

@@ -64,7 +64,7 @@ class type_url extends type_string
return false;
}
if (!preg_match('#^' . get_preg_expression('url') . '$#i', $field_value))
if (!preg_match('#^' . get_preg_expression('url') . '$#iu', $field_value))
{
return $this->user->lang('FIELD_INVALID_URL', $this->get_field_name($field_data['lang_name']));
}