Commit 4b039167 by fukai

修复path判断缺陷

parent 42025138
......@@ -233,6 +233,10 @@ public abstract class AbstractCommonController {
continue;
}
if (aliasPath.startsWith(modifyEntry.getKey())) {
int modifyKeyLen = modifyEntry.getKey().length();
//要么字符串相等,要么后续字符应该为 \\ 才可以
if(!(aliasPath.length() == modifyKeyLen || aliasPath.charAt(modifyKeyLen) == '\\'))
continue;
Object val = modifyEntry.getValue();
if (aliasKey == null)
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment