]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
addslashes() did escape also single quotes (') which breaks some banner rotation...
[mailer.git] / inc / mysql-manager.php
index cc9b9aedcab6bec531ef0606903b2ee46d9cbb70..2a3f33ac876c4e5cf0460eabe018f32ee98ad01a 100644 (file)
@@ -2222,7 +2222,7 @@ function reduceRecipientReceivedMails ($column, $id, $count) {
 function createNewTask ($subject, $notes, $taskType, $userid = '0', $adminId = '0', $strip = true) {
        // Insert the task data into the database
        SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_task_system` (`assigned_admin`, `userid`, `status`, `task_type`, `subject`, `text`, `task_created`) VALUES (%s,%s,'NEW','%s','%s','%s', UNIX_TIMESTAMP())",
-               array($adminId, $userid, $taskType, $subject, addslashes($notes)), __FUNCTION__, __LINE__, true, $strip);
+               array($adminId, $userid, $taskType, $subject, escapeQuotes($notes)), __FUNCTION__, __LINE__, true, $strip);
 }
 
 // Updates last module / online time