Skip to content

Commit

Permalink
PES-402: SQL fixes (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Filip Jiskra <[email protected]>
Co-authored-by: packeta <[email protected]>
  • Loading branch information
3 people authored Nov 23, 2021
1 parent 2cc605c commit 78c989e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGE_LOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
- Updated: Schema migration simplified by using GenericTableUpdater
- Updated: Plugin tables are dropped during uninstall.
- Added: Backup table for orders is added in case uninstall happens by mistake.

- Fixed: SQL escaping

1.3.0 - Added: editable order weight

1.2.0 - Added: packeta shipping method configuration
Expand Down
2 changes: 1 addition & 1 deletion media/admin/com_virtuemart/controllers/zasilkovna.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function save($data = 0)
}

$db = JFactory::getDBO();
$q = "UPDATE #__extensions SET custom_data='" . serialize($data) . "' WHERE element='zasilkovna'";
$q = "UPDATE #__extensions SET custom_data='" . $db->escape(serialize($data)) . "' WHERE element='zasilkovna'";
$db->setQuery($q);
$db->execute();

Expand Down

0 comments on commit 78c989e

Please sign in to comment.