Project

General

Profile

Actions

Feature #12787

open

The url validator accepts bad urls like "https://"

Added by David Davis over 9 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

[6] pry(main)> "https:://" =~ URI.regexp(["https"])
=> 0
[7] pry(main)> "https:badone" =~ URI.regexp(["https"])
=> 0
[8] pry(main)> "https://" =~ URI.regexp(["https"])
=> 0
[9] pry(main)> "https:" =~ URI.regexp(["https"])
=> 0

Related issues 2 (1 open1 closed)

Related to Foreman - Bug #12698: Insufficient URL validation for smart proxy and mediumClosedDaniel Lobato Garcia12/04/2015Actions
Blocks Katello - Refactor #12777: Use foreman's url_schema validatorNewDavid DavisActions
Actions

Also available in: Atom PDF