summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2010-04-14 16:43:02 +0000
committerUrban Müller2010-04-14 16:43:02 +0000
commitf4e93bf8d9a80f82454b147dfb8481b102ec717f (patch)
treec809e30b2cb4ab60091a2f89b5a13aa4af9a773e
parent7856adae233d2ddf2aed7d8f4a8c41069ec13006 (diff)
downloaditools-f4e93bf8d9a80f82454b147dfb8481b102ec717f.tar.gz
itools-f4e93bf8d9a80f82454b147dfb8481b102ec717f.tar.bz2
itools-f4e93bf8d9a80f82454b147dfb8481b102ec717f.zip
dont trigger latinize on line feed
-rw-r--r--it_xml.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_xml.class b/it_xml.class
index da02b00..da74b4e 100644
--- a/it_xml.class
+++ b/it_xml.class
@@ -134,7 +134,7 @@ function _sanitize($xmldata, $isutf8 = null)
$xmldata = preg_replace('/[\x80-\xff]{1,4}/e', "it_xml::_utf8_fix('\\0')", $xmldata);
# If not utf-8, remove characters illegal for latin-1
- if (!$isutf8 && preg_match('/[\x00-\x08\x0a-\x0c\x0e-\x1f\x80-\x9f]/', $xmldata))
+ if (!$isutf8 && preg_match('/[\x00-\x08\x0b-\x0c\x0e-\x1f\x80-\x9f]/', $xmldata))
$xmldata = it_html::latinize($xmldata);
return array($xmldata, $isutf8);