校验颜色值合法性

Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
fangyunzhong
2022-09-19 12:18:13 +08:00
parent 1143f82813
commit 04f68a0f9e
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -267,6 +267,7 @@ string ResourceUtil::RealPath(const string &path)
{
return FileEntry::RealPath(path);
}
bool ResourceUtil::IslegalPath(const string &path)
{
return path == "element" || path == "media" || path == "profile";