[Pushed] Find Users should use `escape_string_like()`

$userfield_sql .= ' AND '.$db->escape_string($column)." LIKE '%".$db->escape_string($input)."%'";

should be

$userfield_sql .= ' AND '.$db->escape_string($column)." LIKE '%".$db->escape_string_like($input)."%'";


	 * Escape a string used within a like command.
	 * @param string The string to be escaped.
	 * @return string The escaped string.
	function escape_string_like($string)
		return $this->escape_string(str_replace(array('%', '_') , array('\\%' , '\\_') , $string));
No longer involved in the MyBB project.

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/2171

Thanks for contributing to MyBB!

The MyBB Group

Forum Jump:

Users browsing this thread: 1 Guest(s)