politik-bei-uns / politik-bei-uns-web-old

Offenes Ratsinformationssystem: Weboberfläche
BSD 3-Clause "New" or "Revised" License
12 stars 6 forks source link

URLs in JSON responses should be properly escaped #45

Open torfsen opened 7 years ago

torfsen commented 7 years ago

Many OParl responses contain URL strings in the JSON data. These URLs should be properly escaped. Currently this is not the case. For example, the next link in the paginated object list https://politik-bei-uns.de/oparl/body/54eaf4911ae6a017fc442c3a/person is

"links": {"next": "https://politik-bei-uns.de/oparl/body/54eaf4911ae6a017fc442c3a/person?q=modified:<2016-08-05T10:33:00.188000"}

That URL contains multiple characters that must be escaped (<, :) in its query string