Fixed an error in CSRF.lib.php
![](https://flatboard.org/uploads/avatars/generates/58ff4d0a4x50dot.png)
Fixed an error in CSRF.lib.php
HD#20af3 Wednesday 7th December 2016, 11:03:22I recently got an error in line 29 of "CSRF.lib.php", because of an bad "[" char.
I solved this by changing the line
`return $_SESSION['token'] = base64_encode(implode('|', [md5($_SERVER['REMOTE_ADDR']), uniqid()]));`
to
`return $_SESSION['token'] = base64_encode(implode('|', array(md5($_SERVER['REMOTE_ADDR']), uniqid())));`
Maybe someone had the same issue, so here's the solution for this.
Thank you for this wonderful piece of software, I found you luckily by reading through the bludit forum :)
Best regards,
HarleyDavidson
I solved this by changing the line
`return $_SESSION['token'] = base64_encode(implode('|', [md5($_SERVER['REMOTE_ADDR']), uniqid()]));`
to
`return $_SESSION['token'] = base64_encode(implode('|', array(md5($_SERVER['REMOTE_ADDR']), uniqid())));`
Maybe someone had the same issue, so here's the solution for this.
Thank you for this wonderful piece of software, I found you luckily by reading through the bludit forum :)
Best regards,
HarleyDavidson
Last modified by HD#20af3 on Tuesday 12th March 2019, 08:58:00
HD#20af3 locked the discussion.
Suggested Topics
![SurveyBuilder-Admin](https://flatboard.org/uploads/avatars/SurveyBuilder-Admin_58600212.png)
SurveyBuilder-Admin
started SSQL - PHP Library(plugin extensions)
Resources
![](https://flatboard.org/uploads/avatars/generates/5af351f71x50dot.png)
Balistic#423165
started ๐ซ๐ท Partage de discussions entre instances Flatboards
International Discussions
![nemito](https://flatboard.org/uploads/avatars/generates/60ffd3764x50dot.png)
nemito@b1bf54a8
started ๐ซ๐ท Affichage de date de publication ne fonctionne plus
General Questions
![erikjohnson](https://flatboard.org/uploads/avatars/generates/5942f30c7x50dot.png)
erikjohnson@cfa4403a
started My password has been stolen.. do not use this software.
General Questions