mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
Ensure we do not extract truncated URL for Homepage directive
Related feedback:
- b12e0e05ea (commitcomment-44309540)
This commit is contained in:
parent
6b1a9e7aee
commit
ee2fd45f00
@ -801,7 +801,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
|
||||
listEntry.title = this.orphanizeString(title);
|
||||
this.assets.registerAssetSource(assetKey, { title });
|
||||
}
|
||||
matches = head.match(/(?:^|\n)(?:!|# )[\t ]*Homepage[\t ]*:[\t ]*(https?:\/\/\S+)/i);
|
||||
matches = head.match(/(?:^|\n)(?:!|# )[\t ]*Homepage[\t ]*:[\t ]*(https?:\/\/\S+)\s/i);
|
||||
const supportURL = matches && matches[1] || '';
|
||||
if ( supportURL !== '' && supportURL !== listEntry.supportURL ) {
|
||||
listEntry.supportURL = this.orphanizeString(supportURL);
|
||||
|
Loading…
Reference in New Issue
Block a user