BlackCatDevelopment / BlackCatCMS

BlackCat CMS is a PHP5, HTML5 content management system
https://blackcat-cms.org
Other
11 stars 9 forks source link

v1.0: Call to undefined function csrf_get_tokens() #182

Closed webbird closed 10 years ago

webbird commented 11 years ago

When clicking on an Addon in the Backed -> Addons, an error occurs containing

Call to undefined function csrf_get_tokens() ...

The error occurs on 1&1 servers. Please let me know if it also appears on other hosters!

Quick and dirty hack is to change lines

    // create token
    $tpl_data['csrftoken'] = csrf_get_tokens();
    $tpl_data['csrfname']  = $GLOBALS['csrf']['input-name'];

to

    // create token
    // $tpl_data['csrftoken'] = csrf_get_tokens();
    // $tpl_data['csrfname']  = $GLOBALS['csrf']['input-name'];

in ./backend/addons/ajax_get_details.php.

webbird commented 11 years ago

'Fixed' by removing the token, which is, in fact, not really a fix, but on the other hand, it's not really a security breach, so...

webbird commented 10 years ago

Fix got lost somehow, will have to add it again.