• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Incorrect controller_name max length in SessionActivity

Affected version
2.0.0 beta 6

rellect

Well-known member
#1
In SessionActivity.php, the contorller_name is cut off to 50 chars but the database field allows up to 100.

Line 134 in SessionActivity repo
PHP:
$controller = substr($controller, 0, 50);
I'm not sure if the mistake is in the database or in the code,
But please keep it 100 or higher, 50 is not enough.
 

Chris D

XenForo developer
Staff member
#2
The database did indeed change in 2.0. We increased all fields which contain a class name to 100 and all fields which contain a method name to 75. The code has been updated to reflect the increased lengths (for the next release).