SeasideSt / Seaside

The framework for developing sophisticated web applications in Smalltalk.
MIT License
519 stars 71 forks source link

WAFastCGIRequestConverter>>#requestUrlFor: signals a WAInvalidUrlSyntaxError when the ‘REQUEST_URI’ is ‘/?://’ #1376

Closed Rinzwind closed 1 year ago

Rinzwind commented 1 year ago

When the ‘REQUEST_URI’ parameter is /?:// in WAFastCGIRequestConverter>>#requestUrlFor:, a WAInvalidUrlSyntaxError is signaled, although /?:// is a valid ‘origin-form’ per section 3.2.1 in RFC 9112.

The relevant rules from RFC 9112, RFC 9110 and RFC 3986 are:

origin-form   = absolute-path [ "?" query ]

absolute-path = 1*( "/" segment )

segment       = *pchar

query         = *( pchar / "/" / "?" )

pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"