diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-09-30 08:07:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 08:07:47 +0200 |
commit | 27ce4bd1a41c11ab4ffe076df50a5f42402c8cf2 (patch) | |
tree | d388489d765e430fc71e98a3cd18f672df79bf22 /lib/public | |
parent | 87d4c3d84e97ada31f447b764be2fef612ad4085 (diff) | |
parent | f976d372fef774e1011f92930b4a48b4b6ce270e (diff) | |
download | nextcloud-server-27ce4bd1a41c11ab4ffe076df50a5f42402c8cf2.tar.gz nextcloud-server-27ce4bd1a41c11ab4ffe076df50a5f42402c8cf2.zip |
Merge pull request #34322 from nextcloud/bugfix/noid/limit-url-matching-to-https
Only match http(s) URLs for references
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/IURLGenerator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/IURLGenerator.php b/lib/public/IURLGenerator.php index 808ba66c862..be0edf61025 100644 --- a/lib/public/IURLGenerator.php +++ b/lib/public/IURLGenerator.php @@ -43,7 +43,7 @@ interface IURLGenerator { * * @since 25.0.0 */ - public const URL_REGEX = '/(\s|\n|^)(https?:\/\/)?((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|\n|$)/mi'; + public const URL_REGEX = '/(\s|\n|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|\n|$)/mi'; /** * Returns the URL for a route |