Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Uncaught URIError: URI malformed #12

Open
pelerin2 opened this issue Sep 5, 2017 · 0 comments
Open

Uncaught URIError: URI malformed #12

pelerin2 opened this issue Sep 5, 2017 · 0 comments

Comments

@pelerin2
Copy link

pelerin2 commented Sep 5, 2017

[Enter steps to reproduce:]

  1. Start editing a file in Atom
  2. Place the following text in it: %%26lt;script%26gt;alert(1)%26lt;/script%26gt;%
  3. Try to decode it. I get the error below, and the string doesn't get decoded.

Atom: 1.19.5 x64
Electron: 1.6.9
OS: Mac OS X 10.12.6
Thrown From: escape-utils package 0.5.3

Stack Trace

Uncaught URIError: URI malformed

At /Users/hughcushing/.atom/packages/escape-utils/lib/escape-utils.coffee:20

URIError: URI malformed
    at decodeURIComponent (<anonymous>)
    at Object.transfromSel (/packages/escape-utils/lib/escape-utils.coffee:20:22)
    at /packages/escape-utils/lib/escape-utils.coffee:7:72)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:166:25)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:1338:34)
    at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app/src/application-delegate.js:334:31)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -2:12.6.0 core:select-all (input.hidden-input)
     -2:09.4.0 escape-utils:html-decode (input.hidden-input)
     -2:04.8.0 escape-utils:url-decode (input.hidden-input)
     -0:45 application:new-file (ul.list-inline.tab-bar.inset-panel)
     -0:42.9.0 core:paste (input.hidden-input)
     -0:37.6.0 core:undo (input.hidden-input)
  6x -0:37.2.0 editor:newline (input.hidden-input)
     -0:34.9.0 core:paste (input.hidden-input)
  2x -0:28.4.0 escape-utils:url-decode (input.hidden-input)

Non-Core Packages

escape-utils 0.5.3 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant