Traewelling / traewelling

Free check-in service to log your public transit journeys
https://traewelling.de
GNU Affero General Public License v3.0
224 stars 43 forks source link

🚑 Fix urlencoding in Hafas #2681

Closed HerrLevin closed 3 weeks ago

HerrLevin commented 3 weeks ago

Remove ++ and set %20.

For more context, see: https://stackoverflow.com/a/1634293/13310679 , https://www.php.net/manual/en/function.rawurlencode.php and https://www.php.net/manual/en/function.urlencode.php

This differs from the » RFC 3986 encoding (see rawurlencode()) in that for historical reasons, spaces are encoded as plus (+) signs.This differs from the » RFC 3986 encoding (see rawurlencode()) in that for historical reasons, spaces are encoded as plus (+) signs.