projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27b7af8
)
Remove the Asterisk mark and Question mark in decrypt resource path
author
JongHeon Choi
<j-h.choi@samsung.com>
Mon, 9 May 2016 11:57:12 +0000
(20:57 +0900)
committer
JongHeon Choi
<j-h.choi@samsung.com>
Mon, 9 May 2016 22:56:36 +0000
(07:56 +0900)
common/resource_manager.cc
patch
|
blob
|
history
diff --git
a/common/resource_manager.cc
b/common/resource_manager.cc
index 349a38fe4c9d9f705a50a1ce4ba96d7ca87e5b11..c00d9656dcc6ae6fa78663bcafe4e8aa5cca774c 100644
(file)
--- a/
common/resource_manager.cc
+++ b/
common/resource_manager.cc
@@
-577,6
+577,11
@@
std::string ResourceManager::DecryptResource(const std::string& path) {
src_path.erase(0, strlen(kSchemeTypeFile));
}
+ // Remove the parameters at the end of an href attribute
+ size_t end_of_path = src_path.find_first_of("?#");
+ if (end_of_path != std::string::npos)
+ src_path = src_path.substr(0, end_of_path);
+
FILE *src = fopen(src_path.c_str(), "rb");
if (!src) {
LOGGER(ERROR) << "Cannot open file for decryption: " << src_path;