huysentruitw / SapNwRfc

SAP NetWeaver RFC library for .NET 5, .NET Core and .NET Framework
MIT License
149 stars 45 forks source link

Password with equal signs can't be parsed as string #96

Open workinghard opened 6 months ago

workinghard commented 6 months ago

While using Parse function in SapConnectionParameters.cs connectionString with multiple equal signs causing issues and does not work as intended.

Easy to reproduce: Regex: "^\s(?\S)\s=\s(?\S)\s$" Input: something=my=password Output: key="something=my" value="password"

This issue can be avoided by using "SapConnection(SapConnectionParameters parameters)" constructor instead of "public SapConnection(string connectionString)". But it would be great to fix it.