-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generateRouteHostRegexp: Escape blanks
Escape spaces, tabs, carriage returns, and linefeeds in the regular expression for a route's path in HAProxy map files in order to ensure that HAProxy can parse the resulting map files correctly. Follow-up to commit 019c5ac. This commit fixes bug 2074304. https://bugzilla.redhat.com/show_bug.cgi?id=2074304 * pkg/router/template/util/haproxy/map_entry_test.go (TestGenerateHttpRedirectMapEntry): Add a test with a path with a space, a test with a path with a tab, a test with a path with a carriage return, and a test with a path with a linefeed. * pkg/router/template/util/util.go (GenerateRouteRegexp): Escape spaces, tabs, carriage returns, and linefeeds in the pattern for the route's path.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 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