Skip to content
Browse files

Parse values in the query

  • Loading branch information...
1 parent f382a3f commit 1a6543773bb482dff4b4ae9e2c4bdf0d8853ccf5 @haraldpdl haraldpdl committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 catalog/admin/login.php
View
2 catalog/admin/login.php
@@ -96,7 +96,7 @@
$username = tep_db_prepare_input($HTTP_POST_VARS['username']);
$password = tep_db_prepare_input($HTTP_POST_VARS['password']);
- tep_db_query('insert into ' . TABLE_ADMINISTRATORS . ' (user_name, user_password) values ("' . $username . '", "' . tep_encrypt_password($password) . '")');
+ tep_db_query("insert into " . TABLE_ADMINISTRATORS . " (user_name, user_password) values ('" . tep_db_input($username) . "', '" . tep_db_input(tep_encrypt_password($password)) . "')");
}
tep_redirect(tep_href_link(FILENAME_LOGIN));

0 comments on commit 1a65437

Please sign in to comment.
Something went wrong with that request. Please try again.