Changeset 177:828caae4cb16

Show
Ignore:
Timestamp:
02/22/2008 09:30:17 PM (4 years ago)
Author:
Dmitry Nezhevenko <dion@…>
Branch:
default
Message:

Fix charset detection regression (51ae61022e2d)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/plugins/net/wwwrequest.cpp

    r171 r177  
    104104        } 
    105105        QString htmlCharset; 
    106         if (!tag.isEmpty()) 
     106        if (!tag.isEmpty()) { 
    107107                htmlCharset=getValue(tag,"charset=([A-Za-z0-9\\-\\_]+[^A-Za-z0-9\\-\\_])"); 
     108                if (htmlCharset.isEmpty()) { 
     109                        htmlCharset=getValue(tag,"charset=([A-Za-z0-9\\-\\_]+)$"); 
     110                } 
     111        } 
    108112 
    109113        if (!myExp.isEmpty())