From 9d4c1d751638c7d071e6ef65b9c5c519214a8d37 Mon Sep 17 00:00:00 2001 From: Andrzej Surdej Date: Tue, 19 Mar 2013 13:41:47 +0100 Subject: [PATCH] Disable CSP support and config.xml tag renamed. [Issue#] N/A [Problem] N/A [Cause] N/A [Solution] N/A [Verification] Build repo Change-Id: Icf77b94254ec2b39e0980db0213aed7207467751 --- CMakeLists.txt | 2 +- src/configuration_parser/widget_parser.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78004ae..5a23ce2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,7 @@ ENDIF(NOT CMAKE_BUILD_TYPE) #csp from .xml parsing enabled -OPTION(CSP_SUPPORT "Support for csp policy" ON) +OPTION(CSP_SUPPORT "Support for csp policy" OFF) IF(CSP_SUPPORT) ADD_DEFINITIONS("-DCSP_ENABLED") diff --git a/src/configuration_parser/widget_parser.cpp b/src/configuration_parser/widget_parser.cpp index df343dc..026a84d 100644 --- a/src/configuration_parser/widget_parser.cpp +++ b/src/configuration_parser/widget_parser.cpp @@ -2545,11 +2545,11 @@ WidgetParser::WidgetParser(ConfigParserData& data) : &WidgetParser::OnCategoryElement); m_map[L"app-widget"] = DPL::MakeDelegate(this, &WidgetParser::OnAppWidgetElement); #ifdef CSP_ENABLED - m_map[L"Content-Security-Policy"] = DPL::MakeDelegate( + m_map[L"content-security-policy"] = DPL::MakeDelegate( this, &WidgetParser:: OnCspElement); - m_map[L"Content-Security-Policy-Report-Only"] = DPL::MakeDelegate( + m_map[L"content-security-policy-report-only"] = DPL::MakeDelegate( this, &WidgetParser:: OnCspReportOnlyElement); -- 2.7.4