Skip to content

Commit

Permalink
fix typo, change version
Browse files Browse the repository at this point in the history
  • Loading branch information
conejoninja committed Mar 23, 2015
1 parent 4175a29 commit 983305c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
@@ -1,3 +1,7 @@
Osclass 3.5.5 2015-03-23
------------------------
- Fix typo on SQL query

Osclass 3.5.4 2015-03-23
------------------------
- Fixed two critical vulnerabilities thanks to Pedro Worcel ( http://www.security-assessment.com/ )
Expand Down
2 changes: 1 addition & 1 deletion oc-content/themes/bender
Submodule bender updated 2 files
+4 −4 item-post.php
+0 −1 user-profile.php
8 changes: 4 additions & 4 deletions oc-includes/osclass/controller/item.php
Expand Up @@ -175,7 +175,7 @@ function doModel()
case 'item_edit': // edit item
$secret = Params::getParam('secret');
$id = Params::getParam('id');
$item = $this->itemManager->listWhere("i.pk_i_id = '%d' AND ((i.s_secret = '%s' AND i.fk_i_user_id IS NULL) OR (i.fk_i_user_id = '%d'))", (int)($id), $secret, (int)($this->userId));
$item = $this->itemManager->listWhere("i.pk_i_id = %d AND ((i.s_secret = %s AND i.fk_i_user_id IS NULL) OR (i.fk_i_user_id = %d))", (int)($id), $secret, (int)($this->userId));
if (count($item) == 1) {
$item = Item::newInstance()->findByPrimaryKey($id);

Expand Down Expand Up @@ -204,7 +204,7 @@ function doModel()

$secret = Params::getParam('secret');
$id = Params::getParam('id');
$item = $this->itemManager->listWhere("i.pk_i_id = '%d' AND ((i.s_secret = '%s' AND i.fk_i_user_id IS NULL) OR (i.fk_i_user_id = '%d'))", (int)($id), $secret, (int)($this->userId));
$item = $this->itemManager->listWhere("i.pk_i_id = %d AND ((i.s_secret = %s AND i.fk_i_user_id IS NULL) OR (i.fk_i_user_id = %d))", (int)($id), $secret, (int)($this->userId));

if (count($item) == 1) {
$this->_exportVariableToView('item', $item[0]);
Expand Down Expand Up @@ -248,7 +248,7 @@ function doModel()
case 'activate':
$secret = Params::getParam('secret');
$id = Params::getParam('id');
$item = $this->itemManager->listWhere("i.pk_i_id = '%d' AND ((i.s_secret = '%s') OR (i.fk_i_user_id = '%d'))", (int)($id), $secret, (int)($this->userId));
$item = $this->itemManager->listWhere("i.pk_i_id = %d AND ((i.s_secret = %s) OR (i.fk_i_user_id = %d))", (int)($id), $secret, (int)($this->userId));

// item doesn't exist
if( count($item) == 0 ) {
Expand Down Expand Up @@ -276,7 +276,7 @@ function doModel()
case 'item_delete':
$secret = Params::getParam('secret');
$id = Params::getParam('id');
$item = $this->itemManager->listWhere("i.pk_i_id = '%d' AND ((i.s_secret = '%s') OR (i.fk_i_user_id = '%d'))", (int)($id), $secret, (int)($this->userId));
$item = $this->itemManager->listWhere("i.pk_i_id = %d AND ((i.s_secret = %s) OR (i.fk_i_user_id = %d))", (int)($id), $secret, (int)($this->userId));
if (count($item) == 1) {
$mItems = new ItemActions(false);
$success = $mItems->delete($item[0]['s_secret'], $item[0]['pk_i_id']);
Expand Down
2 changes: 1 addition & 1 deletion oc-includes/osclass/installer/basic_data.sql
Expand Up @@ -4,7 +4,7 @@ INSERT INTO /*TABLE_PREFIX*/t_currency (pk_c_code, s_name, s_description, b_enab
('EUR', 'European Union euro', 'Euro €', true);

INSERT INTO /*TABLE_PREFIX*/t_preference VALUES
('osclass', 'version', 354, 'INTEGER')
('osclass', 'version', 355, 'INTEGER')
,('osclass', 'theme', 'bender', 'STRING')
,('osclass', 'admin_language', 'en_US', 'STRING')
,('osclass', 'language', 'en_US', 'STRING')
Expand Down
2 changes: 1 addition & 1 deletion oc-includes/osclass/upgrade-funcs.php
Expand Up @@ -513,7 +513,7 @@
osc_set_preference('marketURL', 'http://market.osclass.org/api/v2/');
}

osc_changeVersionTo(354);
osc_changeVersionTo(355);

if(!defined('IS_AJAX') || !IS_AJAX) {
if(empty($aMessages)) {
Expand Down
2 changes: 1 addition & 1 deletion oc-load.php
Expand Up @@ -16,7 +16,7 @@
*/


define('OSCLASS_VERSION', '3.5.4');
define('OSCLASS_VERSION', '3.5.5');

if( !defined('ABS_PATH') ) {
define( 'ABS_PATH', str_replace('\\', '/', dirname(__FILE__) . '/' ));
Expand Down

0 comments on commit 983305c

Please sign in to comment.