summaryrefslogtreecommitdiff
path: root/program/lib/html2text.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-03-05 08:10:52 +0000
committeralecpl <alec@alec.pl>2011-03-05 08:10:52 +0000
commit243084601ad83486601f7cf1a756ee6e37e74571 (patch)
treeb52b60ac96c9dfe49219a11e0b9af23767738330 /program/lib/html2text.php
parent01a3689c209f5ff480c178da8bd32de4a61a4e5c (diff)
- Applied some fixes from trunk
Diffstat (limited to 'program/lib/html2text.php')
-rw-r--r--program/lib/html2text.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/program/lib/html2text.php b/program/lib/html2text.php
index 3b98e8df7..325a1c941 100644
--- a/program/lib/html2text.php
+++ b/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
*