Author Topic: 0.2.2 escape dbname  (Read 3078 times)

Offline agrajag

  • Newbie
  • *
  • Posts: 4
0.2.2 escape dbname
« 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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
0.2.2 escape dbname
« Reply #1 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
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline agrajag

  • Newbie
  • *
  • Posts: 4
0.2.2 escape dbname
« Reply #2 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


I tried %40 because it was used in the username but it didnt worked... Are u sure its %48?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
0.2.2 escape dbname
« Reply #3 on: July 18, 2009, 07:00:43 AM »
Sorry, yep %40
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…