Browse Source

* Fixed GetURL for the case there are no parameters in the CGIScriptName

git-svn-id: trunk@14875 -
joost 15 years ago
parent
commit
7d16a2ded2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-web/src/webpage.pp

+ 1 - 1
packages/fcl-web/src/webpage.pp

@@ -473,7 +473,7 @@ begin
   else
   else
     begin
     begin
     CGIScriptName:=ScriptName;
     CGIScriptName:=ScriptName;
-    if pos('?',ScriptName)>-1 then ConnectChar := '&';
+    if pos('?',ScriptName)>0 then ConnectChar := '&';
     end;
     end;
   if FancyTitle then // use ? or /
   if FancyTitle then // use ? or /
     result := CGIScriptName + '/' + Result
     result := CGIScriptName + '/' + Result