Skip to content

API hostname regex should support a dash in hostname #282

@mattkirby

Description

@mattkirby

From #218

Found a small bug making the API choke on hostnames containing a dash:

lib/vmpooler/api/helpers.rb:120 reads:

if domain && hostname =~ /^\w+.#{domain}$/
but should be:

if domain && hostname =~ /^[a-zA-Z0-9-]+.#{domain}$/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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