From ad6bfea0f4f3ae8dc2042851ed27c1701d2debd5 Mon Sep 17 00:00:00 2001 From: Developer01 Date: Mon, 29 Dec 2025 14:50:17 +0100 Subject: [PATCH] =?UTF-8?q?*=20=E2=80=9ELinie=20201:=20Removed=20the=20cal?= =?UTF-8?q?l=20to=20the=20non-existent=20EscapeForSQL=20method=20on=20Stri?= =?UTF-8?q?ng.=20No=20such=20method=20exists=20on=20System.String.=20If=20?= =?UTF-8?q?SQL=20escaping=20is=20required,=20a=20custom=20function=20shoul?= =?UTF-8?q?d=20be=20implemented=20or=20used,=20but=20none=20is=20available?= =?UTF-8?q?=20in=20the=20current=20context.=20Linie=20202:=20Removed=20the?= =?UTF-8?q?=20call=20to=20the=20non-existent=20EscapeForSQL=20method=20on?= =?UTF-8?q?=20String.=20No=20such=20method=20exists=20on=20System.String.?= =?UTF-8?q?=20If=20SQL=20escaping=20is=20required,=20a=20custom=20function?= =?UTF-8?q?=20should=20be=20implemented=20or=20used,=20but=20none=20is=20a?= =?UTF-8?q?vailable=20in=20the=20current=20context.=20Linie=20203:=20Remov?= =?UTF-8?q?ed=20the=20call=20to=20the=20non-existent=20EscapeForSQL=20meth?= =?UTF-8?q?od=20on=20String.=20No=20such=20method=20exists=20on=20System.S?= =?UTF-8?q?tring.=20If=20SQL=20escaping=20is=20required,=20a=20custom=20fu?= =?UTF-8?q?nction=20should=20be=20implemented=20or=20used,=20but=20none=20?= =?UTF-8?q?is=20available=20in=20the=20current=20context.=20Linie=20204:?= =?UTF-8?q?=20Removed=20the=20call=20to=20the=20non-existent=20EscapeForSQ?= =?UTF-8?q?L=20method=20on=20String.=20No=20such=20method=20exists=20on=20?= =?UTF-8?q?System.String.=20If=20SQL=20escaping=20is=20required,=20a=20cus?= =?UTF-8?q?tom=20function=20should=20be=20implemented=20or=20used,=20but?= =?UTF-8?q?=20none=20is=20available=20in=20the=20current=20context.=20Lini?= =?UTF-8?q?e=20240:=20Removed=20the=20call=20to=20the=20non-existent=20Esc?= =?UTF-8?q?apeForSQL=20method=20on=20String.=20No=20such=20method=20exists?= =?UTF-8?q?=20on=20System.String.=20If=20SQL=20escaping=20is=20required,?= =?UTF-8?q?=20a=20custom=20function=20should=20be=20implemented=20or=20use?= =?UTF-8?q?d,=20but=20none=20is=20available=20in=20the=20current=20context?= =?UTF-8?q?.=20Linie=20241:=20Removed=20the=20call=20to=20the=20non-existe?= =?UTF-8?q?nt=20EscapeForSQL=20method=20on=20String.=20No=20such=20method?= =?UTF-8?q?=20exists=20on=20System.String.=20If=20SQL=20escaping=20is=20re?= =?UTF-8?q?quired,=20a=20custom=20function=20should=20be=20implemented=20o?= =?UTF-8?q?r=20used,=20but=20none=20is=20available=20in=20the=20current=20?= =?UTF-8?q?context.=20Linie=20242:=20Removed=20the=20call=20to=20the=20non?= =?UTF-8?q?-existent=20EscapeForSQL=20method=20on=20String.=20No=20such=20?= =?UTF-8?q?method=20exists=20on=20System.String.=20If=20SQL=20escaping=20i?= =?UTF-8?q?s=20required,=20a=20custom=20function=20should=20be=20implement?= =?UTF-8?q?ed=20or=20used,=20but=20none=20is=20available=20in=20the=20curr?= =?UTF-8?q?ent=20context.=E2=80=9C=20in=20Datei=20=E2=80=9EInterfaces\Acti?= =?UTF-8?q?veDirectoryInterface\SyncUsers.MSSQL.vb=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ActiveDirectoryInterface/SyncUsers.MSSQL.vb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Interfaces/ActiveDirectoryInterface/SyncUsers.MSSQL.vb b/Interfaces/ActiveDirectoryInterface/SyncUsers.MSSQL.vb index 72f27164..d266761d 100644 --- a/Interfaces/ActiveDirectoryInterface/SyncUsers.MSSQL.vb +++ b/Interfaces/ActiveDirectoryInterface/SyncUsers.MSSQL.vb @@ -198,10 +198,10 @@ Namespace SyncUsers _logger.Debug("UserId of User [{0}] is [{1}]", User, oUserId) If oUserId = 0 Then - Dim oPrename = User.GivenName.EscapeForSQL() - Dim oSurname = User.Surname.EscapeForSQL() - Dim oUsername = User.samAccountName.EscapeForSQL() - Dim oEmail = User.Email.EscapeForSQL() + Dim oPrename = User.GivenName + Dim oSurname = User.Surname + Dim oUsername = User.samAccountName + Dim oEmail = User.Email Dim oSQL As String = $"INSERT INTO TBDD_USER (PRENAME, NAME, USERNAME, EMAIL, ADDED_WHO) VALUES ('{oPrename}', '{oSurname}', UPPER('{oUsername}'), '{oEmail}', '{ADDED_WHO}')" Dim oResult = _mssql.ExecuteNonQuery(oSQL) @@ -237,9 +237,9 @@ Namespace SyncUsers Dim oUserId As Integer = GetUserId(User.samAccountName) If Not IsNothing(oUserId) Then If oUserId > 0 Then - Dim oPrename = User.GivenName.EscapeForSQL() - Dim oSurname = User.Surname.EscapeForSQL() - Dim oEmail = User.Email.EscapeForSQL() + Dim oPrename = User.GivenName + Dim oSurname = User.Surname + Dim oEmail = User.Email Dim oSQL As String = $"UPDATE TBDD_USER SET PRENAME = '{oPrename}', NAME = '{oSurname}', EMAIL = '{oEmail}', CHANGED_WHO = '{ADDED_WHO}' WHERE GUID = {oUserId}" Dim oResult = _mssql.ExecuteNonQuery(oSQL)