cgi icon indicating copy to clipboard operation
cgi copied to clipboard

Questions About Token and Path

Open xiaoge1001 opened this issue 2 years ago • 0 comments

I looked at the following 2 specifications and got the following information:

2.2 Basic Rules image

4.1.1. Syntax image

The token and path cannot contain CTL. The regular expressions of the two are as follows:

TOKEN_RE = %r"\A[[!-~]&&[^()<>@,;:\\\"/?=\[\]{}]]+\z"
PATH_VALUE_RE = %r"\A[[ -~]&&[^;]]*\z"

What's the difference between the following two uses? How do you match CTLs?

[!-~] [ -~]

xiaoge1001 avatar Jan 06 '23 03:01 xiaoge1001