Config parser - access tag - fix for app:// scheme implementation
authorTomasz Iwanek <t.iwanek@samsung.com>
Wed, 13 Mar 2013 12:24:25 +0000 (13:24 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Wed, 13 Mar 2013 13:08:15 +0000 (14:08 +0100)
[Issue#]       LINUXWRT-149
[Feature]      Parsing change
[Cause]        N/A
[Solution]     There is no logical difference between setting this flag or not in case of WARP. Webkit api needs subDomian as true for wildcard match.
[Verification] Just build repository. Install any widget if you really want.

Change-Id: Ia60207ac2a18de4b91e38c1d064ac5108c1245b4

src/configuration_parser/widget_parser.cpp

index 3b0a0ec..59c984f 100644 (file)
@@ -293,10 +293,15 @@ class AccessParser : public ElementParser
             return;
         }
 
+        if(m_strIRIOrigin == L"*") //wildcard match means yes for subdomains
+        {
+            m_bSubDomainAccess = true;
+        }
+
         ConfigParserData::AccessInfo accessInfo(m_strIRIOrigin,
                                                 m_bSubDomainAccess);
         //std::pair <ConfigParserData::AccessInfoSet::iterator, bool> ret =
-            m_data.accessInfoSet.insert(accessInfo);
+        m_data.accessInfoSet.insert(accessInfo);
     }
 
     virtual void Verify()