1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

Use encodeURIComponent() instead of encodeURI()

Related issue:
- https://github.com/NanoAdblocker/NanoCore/issues/325
This commit is contained in:
Raymond Hill 2020-05-02 07:20:17 -04:00
parent fb85bb20c8
commit c56607fe27
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -95,7 +95,7 @@ const renderFilterLists = function(soft) {
elem = li.querySelector('.listname');
elem.textContent = listNameFromListKey(listKey);
elem = li.querySelector('a.content');
elem.setAttribute('href', 'asset-viewer.html?url=' + encodeURI(listKey));
elem.setAttribute('href', 'asset-viewer.html?url=' + encodeURIComponent(listKey));
elem.setAttribute('type', 'text/html');
li.classList.remove('toRemove');
if ( entry.supportName ) {