Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I disable csrf-magic?
#1
This has been a constant pain in various different servers I have been THT Admin on.

How do I disable includes/csrf-magic.php ?

It keeps giving False Warnings:
Quote:Possible CSRF attack detected. Please make sure cookies are enabled.
They are enabled.
See:
http://thehostingtool.com/forum/thread-1...l#pid11249
http://thehostingtool.com/forum/thread-2043.html

I need to be able to disable it while I complete some tasks, then re-enable it again.

Many thanks in anticipation of a solution!

THT Version: THT v1.3.5
Server's Operating System: CentOS 5
Control Panel Type: Kloxo
Never Say Never, Anything is Possible!
http://cybercapital.co.uk/
Reply
#2
In includes/compiler.php:

FIND:
PHP Code:
require_once("csrf-magic.php"); 

CHANGE IT TO:
PHP Code:
//require_once("csrf-magic.php"); 
---
See my GitHub at https://github.com/cozylife
Reply
#3
@LightworkerNaven
ThanksSmile
Never Say Never, Anything is Possible!
http://cybercapital.co.uk/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)