"/", ".." and "~" from previous tizen
":", ";" and "*" are new one
Change-Id: Id56a2a91267d6aff636727da106b94a762489351
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit
ff77c318a18d5645008cc843fed55b8e8b3c7182)
}
bool ValidateTizenNativeId(const std::string& id) {
- return id.find_first_of('/') == std::string::npos;
+ return (id.length() >= 3 && id.length() < 128 &&
+ id.find_first_of("/:~;*") == std::string::npos &&
+ id.find("..") == std::string::npos);
}
} // namespace parser