Long cookie value can lead to 414 Long Request Error resulting in AJAX failing
|Reported by:||r-a-y||Owned by:||r-a-y|
|Severity:||normal||Keywords:||has-patch early commit|
Forgot to post this and just remembered.
In bp_dtheme_ajax_querystring(), we grab the entire $_COOKIE value and store it:
What happens is when we run a BP AJAX query, the entire cookie string is passed on as well to wp-load.php. For sites that store many cookies (external scripts, tracking, etc.), this can lead to a 414 Long Request error resulting in AJAX failing.
We should only pass on BP's cookies instead of all the cookies.