From 7ae5432fbfc0e923f2fe8dc62ff77afb8ecc80cf Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Wed, 30 May 2012 04:42:27 -0400
Subject: [PATCH] Abbreviate long attachment file names with ellipsis (#1488499)
---
program/lib/MDB2.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/program/lib/MDB2.php b/program/lib/MDB2.php
index 4c06602..61486a6 100644
--- a/program/lib/MDB2.php
+++ b/program/lib/MDB2.php
@@ -888,10 +888,10 @@
if ($dsn) {
// /database
if (($pos = strpos($dsn, '?')) === false) {
- $parsed['database'] = $dsn;
+ $parsed['database'] = rawurldecode($dsn);
// /database?param1=value1¶m2=value2
} else {
- $parsed['database'] = substr($dsn, 0, $pos);
+ $parsed['database'] = rawurldecode(substr($dsn, 0, $pos));
$dsn = substr($dsn, $pos + 1);
if (strpos($dsn, '&') !== false) {
$opts = explode('&', $dsn);
--
Gitblit v1.9.1