With the MySQL database, numeric fields should not be quoted, so it is important that they be typecast instead. (cf: 'Secure_coding_guidelines')
File in case: ...\plugins\system\privacyconsent\privacyconsent.php
Line: 579
->where($db->quoteName('id') . ' = ' . $db->quote($user->id));
Should be typecast
->where($db->quoteName('id') . ' = ' . (int) $user->id);
Line: 649 (casting is missing)
->where($db->quoteName('id') . ' = ' . $user->id);
Should be typecast
->where($db->quoteName('id') . ' = ' . (int) $user->id);
J.3.9
Labels |
Added:
J3 Issue
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-09-09 09:30:41 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_Date | 2018-09-09 09:30:41 | ⇒ | 2018-09-09 09:30:42 |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/22079
should be fixed in #22088 please test