Skip to content

Commit

Permalink
fix taint
Browse files Browse the repository at this point in the history
  • Loading branch information
lastlink committed Oct 11, 2021
1 parent f9d81d1 commit 96176a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion view/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<em>Passwords must be at least 8 characters and contain at least 1 number, 1 capital letter, and 1 special character</em>
<br>

<input type="password" name="clientPassword" id="clientPassword" pattern="(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" <?php echo (isset($clientPassword)) ? "value='$clientPassword'" : "" ?> required>
<input type="password" name="clientPassword" id="clientPassword" pattern="(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" <?php echo htmlentities(isset($clientPassword) ? "value='$clientPassword'" : "") ?> required>
<br>

<!-- <button class="btn red" type="submit">Login</button> -->
Expand Down
2 changes: 1 addition & 1 deletion view/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<em>Passwords must be at least 8 characters and contain at least 1 number, 1 capital letter, and 1 special character</em>
<br>

<input type="password" name="clientPassword" id="clientPassword" <?php echo (isset($clientPassword)) ? "value='$clientPassword'" : "" ?> pattern="(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" required>
<input type="password" name="clientPassword" id="clientPassword" <?php echo htmlentities(isset($clientPassword) ? "value='$clientPassword'" : "") ?> pattern="(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" required>
<br>
<!-- <button class=" btn red" type="submit">Register</button> -->
<input type="submit" class="btn red" name="submit" id="regbtn" value="Register">
Expand Down

0 comments on commit 96176a4

Please sign in to comment.