Skip to content

Support Ubuntu 16.04 w/PHP 7 #61

@signalpoint

Description

@signalpoint

Reported by Charles Sheinin and Greg Hoch at mentor.com :

After migrating to Ubuntu 16.04 w/PHP 7, we noticed that there was some whitespace being added to the start of the CSRF token, resulting in breaking stuff. I’m not sure what exactly changed, but here’s what fixes it (-p1 diff):

*************** Drupal.services.call = function(options)
*** 1750,1751 ****
--- 1750,1752 ----
              if (token) {
+               token = $.trim(token);
                request.setRequestHeader('X-CSRF-Token', token);

Please let us know if you push out a new version with this changed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions