From cd18ea3ab91e36c24ff5b846cf623473dbace90c Mon Sep 17 00:00:00 2001 From: IT-KIMI_SHI\SINOIT.KIMI <kimi42345@gmail.com> Date: 星期二, 12 六月 2018 14:55:06 +0800 Subject: [PATCH] no message --- source/my/frame/src/frame/object/http/Path.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/my/frame/src/frame/object/http/Path.java b/source/my/frame/src/frame/object/http/Path.java index 4a7e65c..248e4e4 100644 --- a/source/my/frame/src/frame/object/http/Path.java +++ b/source/my/frame/src/frame/object/http/Path.java @@ -57,7 +57,7 @@ } - target = uri.substring(contextLength, last); + target = uri.subString(contextLength, last); // 2. root if ("/".equals(target)) { @@ -68,7 +68,7 @@ // 3. find root int pos = target.lastIndexOf("/root/"); if (pos >= 0) { - target = target.substring(pos + "/root/".length()); + target = target.subString(pos + "/root/".length()); } if (target.charAt(0) != '/') { @@ -79,7 +79,7 @@ int pos_dot = target.lastIndexOf("."); if (pos_dot > 0) { - suffix = target.substring(pos_dot); + suffix = target.subString(pos_dot); type = RequestType.Resource; } else { type = RequestType.VirtualPath; @@ -87,15 +87,15 @@ int pos_begin = target.indexOf("/", 1); if (pos_begin > 0) { - parent = target.substring(0, pos_begin); + parent = target.subString(0, pos_begin); } int pos_end = target.lastIndexOf("/"); if (pos_end >= pos_begin) { - leaf = target.substring(pos_end); + leaf = target.subString(pos_end); } - shortTarget = target.substring(1); + shortTarget = target.subString(1); } public String getSuffix() { -- Gitblit v1.8.0