Skip to content

Sanitize syntax highlighting #70

Description

@bramz

When viewing uploaded data with syntax highlighting via /s/ route, data is not being sanitized properly.

To replicate upload code with embedded HTML tags and view with the syntax highlighting route.

             complete: function(token) {
              $html = ['<div class="misc-done">',
                '<label for="url">The URL!</label><input type="text" name="url" class="inside url" value="',
                document.location.href + token.responseJSON.token,
                '" />',
                '</div>'
              ].join('');

Example

screenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions