From 13dd0a79550b198d1d87464824e3efdedfd11fb3 Mon Sep 17 00:00:00 2001 From: inoussa Date: Mon, 26 Oct 2015 16:44:22 +0000 Subject: [PATCH] SOAP serializer : ID and HREF usage fix, thanks DawnCode. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4380 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- wst/trunk/base_soap_formatter.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wst/trunk/base_soap_formatter.pas b/wst/trunk/base_soap_formatter.pas index 988c87d2f..2b6a41053 100644 --- a/wst/trunk/base_soap_formatter.pas +++ b/wst/trunk/base_soap_formatter.pas @@ -510,7 +510,7 @@ var locHRefValue := locNode.NodeValue; if ( locHRefValue[1] = '#' ) then locHRefValue := Copy(locHRefValue,2,Length(locHRefValue)); - Result := SelectSingleNode(Format('//*[@id=%s]',[locHRefValue]),locNode.OwnerDocument,True); + Result := SelectSingleNode(Format('//*[@id=%s]',[QuotedStr(locHRefValue)]),locNode.OwnerDocument,True); //ANode.OwnerDocument.GetElementById(locHRefValue); if ( Result = nil ) then raise ESOAPException.CreateFmt(SERR_NodeNotFoundByID,[locHRefValue]);