#1488035 closed Bugs (fixed)

Database connection fails if database name contains an "@"

Reported by: fgp Owned by:
Priority: 5 Milestone: 0.8-rc
Component: Database Version: 0.5.3
Severity: normal Keywords: database at failure parseDSN
Cc:

Description

If the database name contains an "@", roundcube is unable to connect to the database. This applies to both a literal "@" in the database DSN, as well as to an "@" represented by "%40". While the former case is not easily supportable, since there's no unambigouos way to parse a DSN which contains two "@" characters, ther latter case's failure seems like a bug.

The attached patch fixes that bug by making MDB2's parseDSN use rawurldecode() on the "database" field also, not only on "username" and "password" (where URL-escapes are handled correctly).

I've also reported this to the MDB2 guys, but since roundcube does include it's own copy of MDB2, I figured I'd report it here too. Here's a link to the upstream bugreport

http://pear.php.net/bugs/bug.php?id=18721

Attachments (1)

roundcube.mdb2.at_in_db.patch (858 bytes) - added by fgp 22 months ago.
mdb2_parseDSN_database_rawurldecode

Download all attachments as: .zip

Change History (2)

Changed 22 months ago by fgp

mdb2_parseDSN_database_rawurldecode

comment:1 Changed 15 months ago by alec

  • Milestone changed from later to 0.8-rc
  • Resolution set to fixed
  • Status changed from new to closed

Patch applied in [4da69b95].

Note: See TracTickets for help on using tickets.