basictheprogram / crossfire-metaserver

GNU General Public License v2.0
0 stars 0 forks source link

mysql_real_escape_string is deprecated #1

Closed basictheprogram closed 2 months ago

basictheprogram commented 1 year ago

https://www.php.net/manual/en/function.mysql-real-escape-string.php

This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide. Alternatives to this function include: mysqli_real_escape_string() PDO::quote()

basictheprogram commented 1 year ago

cc: @tannerrj

basictheprogram commented 1 year ago

Replaced mysql_real_escape_string with mysqli_real_escape_string.

basictheprogram commented 2 months ago

Dup of https://sourceforge.net/p/crossfire/bugs/959/

Fixed with 60d61f45710165a97042da16276386645585b608