diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-09-23 13:17:39 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-09-23 13:17:39 -0500 |
commit | 0fc50e1bf120d6544165801a42bcc8757d02fe24 (patch) | |
tree | 0b97eeaade172d5e54d2c741d56c2582c84731f9 /extension/captureURL.js | |
parent | e07a088452f9a039220654c4c85f385633c200f4 (diff) | |
download | TabFS-0fc50e1bf120d6544165801a42bcc8757d02fe24.tar.gz TabFS-0fc50e1bf120d6544165801a42bcc8757d02fe24.zip |
Percent-encode commas in captureURL.js to avoid confusing hashes
Diffstat (limited to 'extension/captureURL.js')
-rw-r--r-- | extension/captureURL.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extension/captureURL.js b/extension/captureURL.js index 0e71772..2f7db4a 100644 --- a/extension/captureURL.js +++ b/extension/captureURL.js @@ -1,6 +1,8 @@ (() => { function encode(str) { - return encodeURIComponent(str).replace("-", "%2D") + return encodeURIComponent(str) + .replace(",", "%2C") + .replace("-", "%2D") } let sel = window.document.getSelection(), |