Uploading files with "%" not working
Posted: Tue Oct 25, 2011 11:52 pm
A little road block...
If you go to my site www.loadafile.com and upload any file with a "%" in the title you get this error
Warning: sprintf() [function.sprintf]: Too few arguments in /home/content/54/6252454/html/library/database/mysql.php on line 125
A database error has been encountered
I am not sure if the mysql.php is set correctly here is line 125 is anyone know what could be the problem?
If you go to my site www.loadafile.com and upload any file with a "%" in the title you get this error
Warning: sprintf() [function.sprintf]: Too few arguments in /home/content/54/6252454/html/library/database/mysql.php on line 125
A database error has been encountered
I am not sure if the mysql.php is set correctly here is line 125 is anyone know what could be the problem?
Code: Select all
public function query( $query, $shutdown=false )
{
if( $shutdown )
{
$this->_shutdownQueries[] = $query;
return null;
}
//-----------------------------------------
// Set our prefix
//-----------------------------------------
if( strpos( $query, '%s' ) !== false )
{
$query = sprintf( str_replace( '%s', '%1$s', $query ), $this->_settings['prefix'] );
}
//-----------------------------------------