Fix decoding charset parameter

To avoid a libxml bug/limitation, we were already stripping the charset
parameter, but we were not considering the single quote as valid
delimiter.
This commit is contained in:
Francis Lachapelle
2013-06-03 11:47:48 -04:00
parent 3281cea2a2
commit 49e964c529
2 changed files with 8 additions and 1 deletions

View File

@@ -189,7 +189,7 @@ static NSData* _sanitizeContent(NSData *theData)
j = 8;
found_delimiter = YES;
while (*(bytes+j) != ' ' && *(bytes+j) != '"')
while (*(bytes+j) != ' ' && *(bytes+j) != '"' && *(bytes+j) != '\'')
{
j++;