forked from theforeman/foreman
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes theforeman#6765 - correct wrong validation on media name
Regex used for validation was wrong, raising error on multiple white spaces instead of on trailing white space. Trailing white space is stripped anyways by StripWhitespace concern before validation. Original bug was concerning " " passing validation. However, that is not a single white space but rather quotes with a space between them; while not useful, it is a valid name. (The quotes are escaped in the db)
- Loading branch information
Showing
2 changed files
with
5 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters