diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-28 17:33:26 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-28 17:33:26 +0000 |
| commit | 1ab92f17679a82f2fabab83fec90058f5b600cf0 (patch) | |
| tree | fe8f0e7df639427fa9967e72b948a357b489ce9a /roundcubemail/program/lib/html2text.php | |
| parent | 01e83241c807f1fcc73bb64b260dc70204d5d172 (diff) | |
- Fix parsing links with non-printable characters inside (#1487805)
git-svn-id: https://svn.roundcube.net/trunk@4580 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib/html2text.php')
| -rw-r--r-- | roundcubemail/program/lib/html2text.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/html2text.php b/roundcubemail/program/lib/html2text.php index 3b98e8df7..325a1c941 100644 --- a/roundcubemail/program/lib/html2text.php +++ b/roundcubemail/program/lib/html2text.php @@ -652,10 +652,12 @@ class html2text case 'h': return $this->_strtoupper("\n\n". $matches[2] ."\n\n"); case 'a': - return $this->_build_link_list($matches[3], $matches[4]); + // Remove spaces in URL (#1487805) + $url = str_replace(' ', '', $matches[3]); + return $this->_build_link_list($url, $matches[4]); } } - + /** * Strtoupper multibyte wrapper function * |
