digitalpoint
Well-known member
In xenforo.js, this:
should be:
[/code]
Without it, variables from the URL in the CURRENT page get injected into the AJAX request.
For example from this URL: https://advertising.digitalpoint.com/advertiser?action=ads&site_id=2
Any AJAX request that does not have site_id=2 in it actually gets site_id=2 accidentally injected into the request because of the lack of URL encoding on the _xfRequestUri variable.
Code:
data = XenForo.ajaxDataPush(data, '_xfRequestUri', window.location.pathname + window.location.search);
Code:
[code]data = XenForo.ajaxDataPush(data, '_xfRequestUri', window.location.pathname + escape(window.location.search));
Without it, variables from the URL in the CURRENT page get injected into the AJAX request.
For example from this URL: https://advertising.digitalpoint.com/advertiser?action=ads&site_id=2
Any AJAX request that does not have site_id=2 in it actually gets site_id=2 accidentally injected into the request because of the lack of URL encoding on the _xfRequestUri variable.