CodeIgniter Forums
DB.php bug - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: DB.php bug (/showthread.php?tid=6751)



DB.php bug - El Forum - 03-10-2008

[eluser]Unknown[/eluser]
I believe that line 69 in DB.php is incorrect. This has to do with the parsing of DSN

It is now:

'database' => (isset($dns['path'])) ? rawurldecode(substr($dns['host'], 1)) : ''

and should be:

'database' => (isset($dns['path'])) ? rawurldecode(substr($dns['path'], 1)) : ''

That gets the databse name in there. Thanks.