From a6b275de5cd96f7a2527958e510a628012041a93 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 8 Aug 2014 15:03:33 +0200 Subject: [ticket/12794] Properly validate google+ field against valid character set PHPBB3-12794 --- phpBB/phpbb/profilefields/type/type_googleplus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/phpbb') diff --git a/phpBB/phpbb/profilefields/type/type_googleplus.php b/phpBB/phpbb/profilefields/type/type_googleplus.php index 887baa3de1..e6729b1935 100644 --- a/phpBB/phpbb/profilefields/type/type_googleplus.php +++ b/phpBB/phpbb/profilefields/type/type_googleplus.php @@ -40,7 +40,7 @@ class type_googleplus extends type_string 'field_length' => 20, 'field_minlen' => 3, 'field_maxlen' => 255, - 'field_validation' => '[\w]+', + 'field_validation' => '(?:(?!\.{2,})([^<>=+]))+', 'field_novalue' => '', 'field_default_value' => '', ); -- cgit v1.2.1