Skip to content

Commit 55a9f2d

Browse files
authored
Merge pull request #73764 from ahardin-rh/OCPBUGS-31382
OCPBUGS-31382: added special character handling table
2 parents a2d4d98 + eaea3ec commit 55a9f2d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

modules/nw-route-specific-annotations.adoc

+14-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The maximum number of IP addresses and CIDR ranges directly visible in the `hapr
5151

5252
`Strict`: the browser sends cookies only for same-site requests.
5353

54-
`None`: the browser sends cookies for both cross-site and same-site requests.
54+
`None`: the browser sends cookies for both cross-site and same-site requests.
5555

5656
This value is applicable to re-encrypt and edge routes only. For more information, see the link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite[SameSite cookies documentation].|
5757

@@ -188,3 +188,16 @@ The following table provides examples of the path rewriting behavior for various
188188
|/foo/|/foo/|/|/
189189
|/foo/|/foo/bar|/|/bar
190190
|===
191+
192+
Certain special characters in `haproxy.router.openshift.io/rewrite-target` require special handling because they must be escaped properly. Refer to the following table to understand how these characters are handled.
193+
194+
.Special character handling:
195+
[cols="3*", options="header"]
196+
|===
197+
|For character|Use characters|Notes
198+
|#|\#|Avoid # because it terminates the rewrite expression
199+
|%|% or %%|Avoid odd sequences such as %%%
200+
|‘| \’|Avoid ‘ because it is ignored
201+
|===
202+
203+
All other valid URL characters can be used without escaping.

0 commit comments

Comments
 (0)