Skip to content

Commit

Permalink
bug fix: phpmyadmin login
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Nov 11, 2024
1 parent e73890f commit f0cf648
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plogical/phpmyadminsignin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

### Get credentials using the token

$token = $_POST['token'];
$username = $_POST['username'];
$token = htmlspecialchars($_POST['token'], ENT_QUOTES, 'UTF-8');
$username = htmlspecialchars($_POST['username'], ENT_QUOTES, 'UTF-8');

//$url = "/dataBases/fetchDetailsPHPMYAdmin?token=" . $token . '&username=' . $username;
$url = "/dataBases/fetchDetailsPHPMYAdmin";
Expand All @@ -38,7 +38,7 @@
session_name(PMA_SIGNON_SESSIONNAME);
@session_start();

$username = $_POST['username'];
$username = htmlspecialchars($_POST['username'], ENT_QUOTES, 'UTF-8');
$password = $_POST['password'];

$_SESSION['PMA_single_signon_user'] = $username;
Expand Down

0 comments on commit f0cf648

Please sign in to comment.