Author: Ilija Tovilo (iluuu1994)
Committer: Derick Rethans (derickr)
Date: 2026-06-23T16:07:42+01:00

Commit: 
https://github.com/php/web-master/commit/a2ea23b557087a264113538c97d7c19ae61a379c
Raw diff: 
https://github.com/php/web-master/commit/a2ea23b557087a264113538c97d7c19ae61a379c.diff

Revert "Hard code 'forgot.php' end point"

This reverts commit f8668ebeb363d5f4b34b786f1a30e80b49f8b6e7.

Changed paths:
  M  public/forgot.php


Diff:

diff --git a/public/forgot.php b/public/forgot.php
index bca7388..f4bfda4 100644
--- a/public/forgot.php
+++ b/public/forgot.php
@@ -44,7 +44,7 @@ function random_password() {
 <p>You're in the home stretch now. Just choose a new password
 (typing it twice, to avoid typos and another trip around this
 merry-go-round).</p>
-<form method="post" action="/forgot.php">
+<form method="post" action="<?= hsc($_SERVER['PHP_SELF']) ?>">
 password: <input type="password" name="n1" value="<?= hsc($n1)?>" />
 <br />again: <input type="password" name="n2" value="<?= hsc($n1)?>" />
 <br /><input type="submit" value="do it!" />

Reply via email to