Skip to content

Default Configuration Accepts Scheme-Only Values https:// and http:// #160

Description

@sshaw

By default validates :my_column, :url => true will accept values of "https://" and "http://". This is allowed by the generated regex. To get around this, one must set :no_local => true, which checks for a "." in the hostname.

To fix this in the gem one can update the above linked regex to /\A#{URI::regexp([scheme])}.\z/ (added .).

See also #59 and #159.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions