Browse Source

Fix regression where using an absolute path to SQLite database file on Windows didn't work (#7196)

pull/7561/head
Aleksander Machniak 6 years ago
parent
commit
ea1260ea72
  1. 1
      CHANGELOG
  2. 1
      program/lib/Roundcube/rcube_db.php

1
CHANGELOG

@ -22,6 +22,7 @@ CHANGELOG Roundcube Webmail
- Fix bug where message parts with no Content-Disposition header and no name were not listed on attachments list (#7117) - Fix bug where message parts with no Content-Disposition header and no name were not listed on attachments list (#7117)
- Fix display issues with mail subject that contains line-breaks (#7191) - Fix display issues with mail subject that contains line-breaks (#7191)
- Fix invalid Content-Transfer-Encoding on multipart messages - Mail_Mime fix (#7170) - Fix invalid Content-Transfer-Encoding on multipart messages - Mail_Mime fix (#7170)
- Fix regression where using an absolute path to SQLite database file on Windows didn't work (#7196)
RELEASE 1.4.2 RELEASE 1.4.2
------------- -------------

1
program/lib/Roundcube/rcube_db.php

@ -1264,6 +1264,7 @@ class rcube_db
if (!empty($parsed['phptype']) && !empty($parsed['database']) if (!empty($parsed['phptype']) && !empty($parsed['database'])
&& stripos($parsed['phptype'], 'sqlite') === 0 && stripos($parsed['phptype'], 'sqlite') === 0
&& $parsed['database'][0] != '/' && $parsed['database'][0] != '/'
&& strpos($parsed['database'], ':') === false
) { ) {
$parsed['database'] = INSTALL_PATH . $parsed['database']; $parsed['database'] = INSTALL_PATH . $parsed['database'];
} }

Loading…
Cancel
Save