-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9180 from kenjis/fix-auto_link-bug
fix: auto_link() converts invalid strings like `://codeigniter.com`
- Loading branch information
Showing
2 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -523,7 +523,7 @@ public static function provideAutoLinkUrl(): iterable | |
], | ||
'test06' => [ | ||
'This one: ://codeigniter.com must not break this one: http://codeigniter.com', | ||
'This one: <a href="://codeigniter.com">://codeigniter.com</a> must not break this one: <a href="http://codeigniter.com">http://codeigniter.com</a>', | ||
'This one: ://codeigniter.com must not break this one: <a href="http://codeigniter.com">http://codeigniter.com</a>', | ||
], | ||
'test07' => [ | ||
'Visit example.com or email [email protected]', | ||
|
@@ -623,7 +623,7 @@ public static function provideAutolinkBoth(): iterable | |
], | ||
'test06' => [ | ||
'This one: ://codeigniter.com must not break this one: http://codeigniter.com', | ||
'This one: <a href="://codeigniter.com">://codeigniter.com</a> must not break this one: <a href="http://codeigniter.com">http://codeigniter.com</a>', | ||
'This one: ://codeigniter.com must not break this one: <a href="http://codeigniter.com">http://codeigniter.com</a>', | ||
], | ||
'test07' => [ | ||
'Visit example.com or email [email protected]', | ||
|
@@ -675,7 +675,7 @@ public static function provideAutoLinkPopup(): iterable | |
], | ||
'test06' => [ | ||
'This one: ://codeigniter.com must not break this one: http://codeigniter.com', | ||
'This one: <a href="://codeigniter.com" target="_blank">://codeigniter.com</a> must not break this one: <a href="http://codeigniter.com" target="_blank">http://codeigniter.com</a>', | ||
'This one: ://codeigniter.com must not break this one: <a href="http://codeigniter.com" target="_blank">http://codeigniter.com</a>', | ||
], | ||
'test07' => [ | ||
'Visit example.com or email [email protected]', | ||
|