Ver Fonte

* Guard against empty email

Michaël Van Canneyt há 16 horas atrás
pai
commit
b207785ef0
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      packages/fcl-md/src/markdown.inlinetext.pas

+ 1 - 0
packages/fcl-md/src/markdown.inlinetext.pas

@@ -848,6 +848,7 @@ begin
   Result:=False;
   S:=Scanner.PeekWhile(cEmailChars);
   lLen:=Length(S);
+  if lLen=0 then exit;
   cLast:=s[lLen];
   // Strip off _ or -
   if CharInSet(cLast,['_','-']) then