Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function validateBase64(section_id, value) {
if (value.length == 0)
return true;

if (value.length != 44 || !value.match(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/))
if (value.length != 44 || !value.match(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this no-useless-escape cleanup is unrelated to the download fix the commit message describes, leaving an undocumented hunk. Either mention it in the commit body or split it into its own commit.


Generated by Claude Code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, please put this in a separate commit with a subject line like:

luci-proto-wireguard: lint fix

return _('Invalid Base64 key string');

if (value[43] != "=" )
Expand Down Expand Up @@ -816,7 +816,8 @@ return network.registerProtocol('wireguard', {
'click'(ev) {
ev.preventDefault();

const blob = new Blob([peer_config], { type: 'text/plain' });
const current_config = node.querySelector('.client-config').textContent;
const blob = new Blob([current_config], { type: 'text/plain' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');

Expand Down
Loading