Roundcube Community Forum

Release Support => Pending Issues => Topic started by: agrajag on July 16, 2009, 03:19:32 PM

Title: 0.2.2 escape dbname
Post by: agrajag on July 16, 2009, 03:19:32 PM
Hi guys,

there is a bug in the handling of dbnames (at least mysql, dont know if other dbs are affected too). If the dbname contains a "@" roundcube can't connect to the database. Unfortunately my hoster adds a @ into each dbname so I had to edit a lot of roundcube php files and hardcoded my dbname ;)
But it would be the best if the dbname gets correctly escaped etc

Thanks,
agrajag

P.S I'm using roudcube 0.2.2 not 0.2.1 but i cant select it :S
Title: 0.2.2 escape dbname
Post by: JohnDoh on July 17, 2009, 03:13:20 AM
Hi, have you tried using %48 inplace of the @ in the dbname? see Manual :: The Data Source Name (http://pear.php.net/manual/en/package.database.db.intro-dsn.php)
Title: 0.2.2 escape dbname
Post by: agrajag on July 17, 2009, 06:32:55 AM
Quote from: JohnDoh;20113
Hi, have you tried using %48 inplace of the @ in the dbname? see Manual :: The Data Source Name (http://pear.php.net/manual/en/package.database.db.intro-dsn.php)


I tried %40 because it was used in the username but it didnt worked... Are u sure its %48?
Title: 0.2.2 escape dbname
Post by: JohnDoh on July 18, 2009, 07:00:43 AM
Sorry, yep %40