HTML tags are case-insensitive, so use case-insensitive regexps to match them
authorJonathan Marshall <jmarshall@never.you.mind>
Thu, 15 Mar 2012 21:26:23 +0000 (10:26 +1300)
committerJonathan Marshall <jmarshall@never.you.mind>
Thu, 15 Mar 2012 21:28:43 +0000 (10:28 +1300)
xbmc/filesystem/HTTPDirectory.cpp

index 6e41cf9..2a0b97b 100644 (file)
@@ -51,7 +51,7 @@ bool CHTTPDirectory::GetDirectory(const CStdString& strPath, CFileItemList &item
     return false;
   }
 
-  CRegExp reItem;
+  CRegExp reItem(true); // HTML is case-insensitive
   reItem.RegComp("<a href=\"(.*)\">(.*)</a>");
 
   /* read response from server into string buffer */
@@ -108,7 +108,7 @@ bool CHTTPDirectory::GetDirectory(const CStdString& strPath, CFileItemList &item
 
         if (!pItem->m_bIsFolder && pItem->m_dwSize == 0)
         {
-          CRegExp reSize;
+          CRegExp reSize(true);
           reSize.RegComp(">*([0-9.]+)(B|K|M|G| )</td>");
           if (reSize.RegFind(strBuffer.c_str()) >= 0)
           {