OSDN Git Service

Fixed the bug in ExtractUrls - normal talk could be handled as a tag
authornaru <bottle@mikage.to>
Wed, 3 Mar 2004 19:52:54 +0000 (19:52 +0000)
committernaru <bottle@mikage.to>
Wed, 3 Mar 2004 19:52:54 +0000 (19:52 +0000)
bottleclient/LogForm.pas

index 75cb2f9..32bef50 100755 (executable)
@@ -685,8 +685,11 @@ var i, u, j: integer;
 begin
   Result.Clear;
   SsParser.InputString := Script;
+  SsParser.LeaveEscape := true;
   for i := 0 to SsParser.Count-1 do begin
-    if (SsParser.Match(SsParser[i], '\URL%b') > 0) then begin
+    if (SsParser.Match(SsParser[i], '\URL%b') > 0)
+    and (SsParser.MarkUpType[i] = mtTag) then
+    begin
       for u := 7 downto 1 do begin
         if (SsParser.Match(SsParser[i],
             '\URL%b'+StringReplace(StringOfChar('-', u*2),