paragonie / airship

Secure Content Management for the Modern Web - "The sky is only the beginning"
https://cspr.ng
Other
418 stars 41 forks source link

CSRF Array to String Error #208

Open ParadiseStudios opened 5 years ago

ParadiseStudios commented 5 years ago

Summary

CSRF token is to be inserted into <body> instead an error from Twig is displayed.

data-ajaxtoken="<br />
<b>Notice</b>:  Array to string conversion in <b>/home/www/csprng/vendor/twig/twig/lib/Twig/Environment.php(467) : eval()'d code</b> on line <b>57</b><br />Array"

You can fix it by using [0] but this isn't a good fix. {% if ajax_csrf_token %} data-ajaxtoken="{{ ajax_csrf_token[0] }}"{% endif %}

You can see the error here: https://bridge.cspr.ng/board