diff options
author | Marcel Hellkamp <marc@gsites.de> | 2020-11-11 19:24:29 +0100 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2020-11-11 19:24:29 +0100 |
commit | 57a2f22e0c1d2b328c4f54bf75741d74f47f1a6b (patch) | |
tree | b350da508f63804fa189a380aa6f7aab1526b1c4 | |
parent | 2d6acef676d35611dc58ca9c3bac51789adbcce8 (diff) | |
download | bottle-57a2f22e0c1d2b328c4f54bf75741d74f47f1a6b.tar.gz |
Do not split query strings on `;` anymore.
Using `;` as a separator instead of `&` was allowed a long time ago,
but is now obsolete and actually invalid according to the 2014 W3C
recommendations. Even if this change is technically backwards-incompatible,
no real-world application should depend on broken behavior. If you REALLY
need this functionality, monkey-patch the _parse_qsl() function.
-rw-r--r-- | bottle.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2585,7 +2585,7 @@ def parse_range_header(header, maxlen=0): def _parse_qsl(qs): r = [] - for pair in qs.replace(';','&').split('&'): + for pair in qs.split('&'): if not pair: continue nv = pair.split('=', 1) if len(nv) != 2: nv.append('') |