From b2b62ba3cd51489e5a535cdd57f09af6d9b6fed3 Mon Sep 17 00:00:00 2001 From: Richard Castro Mamani Date: Sat, 19 Sep 2015 21:21:31 -0500 Subject: [PATCH] Correcting a bug: escaping single quote in mysql call procedure --- .../spellcheck31/script/UserDictionary/IncorrectEntryDao.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/ServerSide/Hinantin/cgi-bin/spellcheck31/script/UserDictionary/IncorrectEntryDao.pm b/ServerSide/Hinantin/cgi-bin/spellcheck31/script/UserDictionary/IncorrectEntryDao.pm index 54d1b09..79f3c96 100644 --- a/ServerSide/Hinantin/cgi-bin/spellcheck31/script/UserDictionary/IncorrectEntryDao.pm +++ b/ServerSide/Hinantin/cgi-bin/spellcheck31/script/UserDictionary/IncorrectEntryDao.pm @@ -29,6 +29,7 @@ sub Save { ($oIncorrectEntry) = @_; $cpIncorrectEntryId = $oIncorrectEntry->cpIncorrectEntryId(); $cpEntry = $oIncorrectEntry->cpEntry(); + $cpEntry =~ s/'/''/g; $cpIsCorrect = $oIncorrectEntry->cpIsCorrect(); $cpFrecuency = $oIncorrectEntry->cpFrecuency(); $cpSLang = $oIncorrectEntry->cpSLang();