gluxi
changeset 344:fd6bda978a73
Allow 0x09 character in !net www.
| author | Dmitry Nezhevenko <dion@inhex.net> |
|---|---|
| date | Sun, 24 Aug 2008 12:22:10 +0300 |
| parents | abd67fce01c8 |
| children | dd9db747af0a |
| files | src/plugins/net/wwwrequest.cpp |
| diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line diff
1.1 --- a/src/plugins/net/wwwrequest.cpp Sun Aug 24 01:02:38 2008 +0300 1.2 +++ b/src/plugins/net/wwwrequest.cpp Sun Aug 24 12:22:10 2008 +0300 1.3 @@ -143,9 +143,10 @@ 1.4 int l=tmpStr.length(); 1.5 for (int i=0; i<l; ++i) 1.6 { 1.7 - if (tmpStr.at(i).unicode()<10) 1.8 + if (tmpStr.at(i).unicode()<9) 1.9 { 1.10 - plugin()->reply(stanza(), "Illegal character in respone body"); 1.11 + plugin()->reply(stanza(), "Illegal character in respone body: 0x" 1.12 + +QString::number(tmpStr.at(i).unicode(),16)); 1.13 return; 1.14 } 1.15 } 1.16 @@ -213,10 +214,7 @@ 1.17 { 1.18 QChar ch=res.at(res.length()-1); 1.19 if (ch!=13 && ch!=10 && ch!=' ') 1.20 - { 1.21 - qDebug() << ch; 1.22 break; 1.23 - } 1.24 res.remove(res.length()-1,1); 1.25 } 1.26
