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

Uncaught URIError: URI malformed #12

@pelerin2

Description

@pelerin2

[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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions