json-viewer icon indicating copy to clipboard operation
json-viewer copied to clipboard

Empty strings are treated as URLs

Open ImRodry opened this issue 4 years ago • 2 comments
trafficstars

If your JSON page has an empty string ("", no spaces) and you have clickableUrls set to true, the extension will treat them as URLs and lead you to an about:blank page on click. I've tested this across websites and it happened to be the case in all situations so far.

ImRodry avatar Mar 15 '21 17:03 ImRodry

Here is the example https://api.github.com/repos/tulios/json-viewer "gravatar_id": "",

turkerdev avatar Apr 15 '21 11:04 turkerdev

Thank you @bajosiaa!

ImRodry avatar Apr 15 '21 11:04 ImRodry