Fixed an error in CSRF.lib.php

Fixed an error in CSRF.lib.php
HD#20af3 Wednesday 7th December 2016, 11:03:22

I 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

Last modified by HD#20af3 on Tuesday 12th March 2019, 08:58:00
HD#20af3 locked the discussion.

Suggested Topics
8.6K 7
JesusGod-Pope666
JesusGod-Pope666@c1adcbb2 started I'm just looking around and thinking
General Questions
6.8K 4
jeff
jeff@5e183c28 started New Install Issues
General Questions
6.3K 3
Want to read more? Browse all categories or view latest topics.