Skip to content

Commit

Permalink
Do NOT encode admin password during setup. It ends up encoded in the …
Browse files Browse the repository at this point in the history
…database
  • Loading branch information
torinfo committed Jul 26, 2022
1 parent 99c4c93 commit 3f9555b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup/page3.php
Expand Up @@ -68,7 +68,7 @@

echo "<p>The admin username is <textarea name=\"admin_username\">" . $_POST['account'] . "</textarea></p>";

echo "<p>The admin password is <textarea name=\"admin_password\">" . htmlspecialchars($_POST['password']) . "</textarea></p>";
echo "<p>The admin password is <textarea name=\"admin_password\">" . $_POST['password'] . "</textarea></p>";

if (function_exists('mime_content_type')) {
echo "<p>Whether the file MIME type check should be enabled for imported files<textarea name=\"enable_mime_check\">false</textarea></p>";
Expand Down
4 changes: 1 addition & 3 deletions setup/page_password.php
Expand Up @@ -108,9 +108,7 @@
if(document.getElementById('account').value==''||document.getElementById('password').value==''){
alert('Please set a username and password');
return false;
} else {
document.getElementById('password').value = encodeURIComponent(document.getElementById('password').value);
}
}
return true;" enctype="multipart/form-data">
<label for="account">Admin account name</label><br /><br /><input type="text" width="100" name="account" id="account" /><br /><br />
<label for="password">Admin account password</label><br /><br /><input type="password" width="100" name="password" id="password"/><br /><br />
Expand Down

0 comments on commit 3f9555b

Please sign in to comment.