@walokra opened this Issue on September 10th 2019

When using Reporting API and i.a. Actions.getPageUrls report it returns JSON data which can be invalid if the label field has backslash. The backslash is correctly encoded to %5C in url and pageUrl elements but not in label. Matomo version 3.11.0.


@tsteur commented on September 10th 2019 Member

Thanks, the JSON looks valid but the backslash in the label looks removed indeed.

@walokra commented on September 11th 2019

Seems that Github removed the backslash in the JSON. Fixed it now and that JSON isn't valid. Backslashes in label field should be also escaped like forward slash is, i.e. "label":"\/search?p=0&q=\&sl=false".

@tsteur commented on September 11th 2019 Member


This is the JSON I'm getting. {"label":"54?4545=55&\\\u00a7$3434e<",

Just checking: Are you sure you're looking at the raw data of the API response? Tested with the same URL I'm getting this:

Powered by GitHub Issue Mirror