Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Ubuntu 16.04 w/PHP 7 #61

Open
signalpoint opened this issue Feb 24, 2017 · 0 comments
Open

Support Ubuntu 16.04 w/PHP 7 #61

signalpoint opened this issue Feb 24, 2017 · 0 comments

Comments

@signalpoint
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant