Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions catalog/admin/languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
switch ($action) {
case 'insert':
$name = tep_db_prepare_input($HTTP_POST_VARS['name']);
$code = tep_db_prepare_input(substr($HTTP_POST_VARS['code'], 0, 2));
$code = tep_db_prepare_input($HTTP_POST_VARS['code'], 0, 5));
$image = tep_db_prepare_input($HTTP_POST_VARS['image']);
$directory = tep_db_prepare_input($HTTP_POST_VARS['directory']);
$sort_order = (int)tep_db_prepare_input($HTTP_POST_VARS['sort_order']);
Expand Down Expand Up @@ -71,7 +71,7 @@
case 'save':
$lID = tep_db_prepare_input($HTTP_GET_VARS['lID']);
$name = tep_db_prepare_input($HTTP_POST_VARS['name']);
$code = tep_db_prepare_input(substr($HTTP_POST_VARS['code'], 0, 2));
$code = tep_db_prepare_input(substr($HTTP_POST_VARS['code'], 0, 5));
$image = tep_db_prepare_input($HTTP_POST_VARS['image']);
$directory = tep_db_prepare_input($HTTP_POST_VARS['directory']);
$sort_order = (int)tep_db_prepare_input($HTTP_POST_VARS['sort_order']);
Expand Down
1 change: 1 addition & 0 deletions catalog/admin/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
if (tep_not_null($action)) {
switch ($action) {
case 'save':
reset($_POST['configuration']);
while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
}
Expand Down
2 changes: 1 addition & 1 deletion catalog/install/oscommerce.sql
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ DROP TABLE IF EXISTS languages;
CREATE TABLE languages (
languages_id int NOT NULL auto_increment,
name varchar(32) NOT NULL,
code char(2) NOT NULL,
code char(5) NOT NULL,
image varchar(64),
directory varchar(32),
sort_order int(3),
Expand Down