Skip to content

Commit

Permalink
Merge pull request #3 from zengli00/zengli
Browse files Browse the repository at this point in the history
merge zengli
  • Loading branch information
zengli00 authored Jan 12, 2018
2 parents 334e618 + 6f6e6c7 commit 9fedc9d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,14 @@ public static String getApplicationId(String contextroot, String basePath) {
else {
String tmp = basePath.replace("\\", "/");
int index = tmp.lastIndexOf("/");

/**
* "/app/xxxxx/" remove the last "/" to get the appid
*/
if (index == tmp.length() - 1) {
tmp = tmp.substring(0, tmp.length() - 1);
index = tmp.lastIndexOf("/");
}

appid = tmp.substring(index + 1);
}
Expand Down

0 comments on commit 9fedc9d

Please sign in to comment.