Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alt_auth plugin and fatal error with php 7.2 + FIX #3981

Closed
Jimmi08 opened this issue Oct 25, 2019 · 1 comment
Closed

alt_auth plugin and fatal error with php 7.2 + FIX #3981

Jimmi08 opened this issue Oct 25, 2019 · 1 comment
Labels
plugin: alt_auth status: testing required Someone needs to confirm this issue's existence and write a test to prevent the fix from regressing.

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented Oct 25, 2019

With using other db option you get Fatal error because used
mysql_real_escape_string
function.

Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in ***\e107_plugins\alt_auth\alt_auth_login_class.php:106 Stack trace: #0 ***\e107_handlers\login.php(134): alt_login->__construct('otherdb', 'xxx', 'xxx') #1 ***\e107_handlers\user_model.php(1593): userlogin->login('xxx', 'xxx', 0, '', false) #2 ***\class2.php(1278): e_user->login('xxx', 'xxx', NULL, '', false) #3 ***\login.php(13): require_once('G:\\php72\\htdocs...') #4 {main} thrown in ***\e107_plugins\alt_auth\alt_auth_login_class.php on line 106

@Jimmi08
Copy link
Contributor Author

Jimmi08 commented Oct 25, 2019

This was fix, not sure if correct:
$username = e107::getParser()->toDB($username);

@Moc Moc added status: testing required Someone needs to confirm this issue's existence and write a test to prevent the fix from regressing. plugin: alt_auth labels Oct 27, 2019
@Jimmi08 Jimmi08 changed the title alt_auth plugin and fatal error with php 7.2 alt_auth plugin and fatal error with php 7.2 + FIX Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: alt_auth status: testing required Someone needs to confirm this issue's existence and write a test to prevent the fix from regressing.
Projects
None yet
Development

No branches or pull requests

2 participants