Skip to content

Commit 491f55c

Browse files
authored
🐛 Allow @ as part of url (#729)
1 parent 7b44ec2 commit 491f55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/attributedef.class.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8165,7 +8165,7 @@ class AttributeURL extends AttributeString
81658165
* @since 3.0.3 moved from Config to AttributeURL constant
81668166
*/
81678167
public const DEFAULT_VALIDATION_PATTERN = /** @lang RegExp */
8168-
'(https?|ftp)\://([a-zA-Z0-9+!*(),;?&=\$_.-]+(\:[a-zA-Z0-9+!*(),;?&=\$_.-]+)?@)?([a-zA-Z0-9-.]{3,})(\:[0-9]{2,5})?(/([a-zA-Z0-9:%+\$_-]\.?)+)*/?(\?[a-zA-Z+&\$_.-][a-zA-Z0-9;:[\]@&%=+/\$_.,-]*)?(#[a-zA-Z0-9_.-][a-zA-Z0-9+\$_.-]*)?';
8168+
'(https?|ftp)\://([a-zA-Z0-9+!*(),;?&=\$_.-]+(\:[a-zA-Z0-9+!*(),;?&=\$_.-]+)?@)?([a-zA-Z0-9-.]{3,})(\:[0-9]{2,5})?(/([a-zA-Z0-9:%@+\$_-]\.?)+)*/?(\?[a-zA-Z+&\$_.-][a-zA-Z0-9;:[\]@&%=+/\$_.,-]*)?(#[a-zA-Z0-9_.-][a-zA-Z0-9+\$_.-]*)?';
81698169

81708170
/**
81718171
* Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329)

0 commit comments

Comments
 (0)