summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcookie <cookie@samsung.com>2017-10-19 11:02:19 +0000
committercookie <cookie@samsung.com>2017-10-19 11:02:19 +0000
commite3ec7eb49fee09337840753e6e36042f6a52d050 (patch)
treeea7693753893c228b1aff0418c9d281fa332b4c8
parent20a40a5b6f7271e8694000d70d09438985f7419d (diff)
downloadbrowser-e3ec7eb49fee09337840753e6e36042f6a52d050.tar.gz
browser-e3ec7eb49fee09337840753e6e36042f6a52d050.tar.bz2
browser-e3ec7eb49fee09337840753e6e36042f6a52d050.zip
There is the file schema issue so it fixed Change-Id: I4b9c98b5510544e51f641acbcac4b40604f88e3c Signed-off-by: cookie <cookie@samsung.com>
-rwxr-xr-xservices/WebPageUI/URIEntry.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/WebPageUI/URIEntry.cpp b/services/WebPageUI/URIEntry.cpp
index 2e6fc23..a999e74 100755
--- a/services/WebPageUI/URIEntry.cpp
+++ b/services/WebPageUI/URIEntry.cpp
@@ -276,14 +276,13 @@ std::string URIEntry::rewriteURI(const std::string& url) const
boost::regex aboutRegex(R"(^about:[^\s]*$)");
boost::regex fileRegex(R"(^file:///[^\s]*$)");
boost::regex myfilesappRegex(R"(^file:///opt/usr/media/[^\s]*$)");
- boost::regex myfilesappetcRegex(R"(^file:///opt/usr/media/../[^\s]*$)");
if (!url.empty()) {
if (boost::regex_match(url, urlRegex) ||
boost::regex_match(url, aboutRegex) ||
boost::regex_match(url, chromeRegex) ||
(boost::regex_match(url, myfilesappRegex) &&
- !boost::regex_match(url, myfilesappetcRegex))) {
+ (url.find("../") == std::string::npos))) {
return url;
} else if (boost::regex_match(std::string("http://") + url, urlRegex) &&
(!boost::regex_match(url, fileRegex)) &&