Skip to content

CodeQL for Ruby: false alert for URI.parse #9232

Open
@nobu

Description

@nobu

https://github.com/ruby/ruby/security/code-scanning/127
URI.parse('https://www.example.com/search?q=%XX') is alerted to escape dots as the string is used as a regex and, but it is matched against RFC3986_URI and RFC3986_relative_ref which are regex both.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions