소스 검색

* Applied Patch from Attila Borka (bug 19374)

git-svn-id: trunk@17602 -
michael 14 년 전
부모
커밋
c7d9525a2f
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      packages/fcl-web/src/base/custweb.pp

+ 5 - 2
packages/fcl-web/src/base/custweb.pp

@@ -376,8 +376,11 @@ begin
   If (Result='') then
     begin
     S:=ARequest.PathInfo;
-    If (Length(S)>0) and (S[1]='/') then
-      Delete(S,1,1);
+    If (Length(S)>0) and (S[1]='/') then  
+      Delete(S,1,1);                      //Delete the leading '/' if exists
+    I:=Length(S);
+    If (I>0) and (S[I]='/') then
+      Delete(S,I,1);                      //Delete the trailing '/' if exists
     I:=Pos('/',S);
     if (I>0) then
       Result:=ARequest.GetNextPathInfo;