summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-02-28 17:33:26 +0000
committeralecpl <alec@alec.pl>2011-02-28 17:33:26 +0000
commit29c54229cfbc104930e7743cecc212f53aed8a15 (patch)
tree46454dce5a10a1efaa213772553b16bca074f197 /program/lib
parentd7167e9eeb372127a857fbd87117dd52758f8597 (diff)
- Fix parsing links with non-printable characters inside (#1487805)
Diffstat (limited to 'program/lib')
-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
*