diff options
author | Joas Schilling <coding@schilljs.com> | 2022-09-29 11:13:18 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-09-29 11:29:23 +0200 |
commit | 474dcf05fdda40a00fca4744133b25b5e5fd8959 (patch) | |
tree | 53cf8a544f712d6f8573a36a37c10c36fd79fa5a /lib | |
parent | a880f791d13702b69c19705f9d06eabb02a81f37 (diff) | |
download | nextcloud-server-474dcf05fdda40a00fca4744133b25b5e5fd8959.tar.gz nextcloud-server-474dcf05fdda40a00fca4744133b25b5e5fd8959.zip |
Only match http(s) URLs for references
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-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 |