MantisBT: master-1.2.x 193f3be7

Author Committer Branch Timestamp Parent
jreese jreese master-1.2.x 2010-06-21 13:43 master-1.2.x 823658eb
Changeset

Added form_action_self() API function

Helper function to generate a form action value when forms are designed
to be submitted to the same url that's is currently being used, such as
helper_ensure_confirmed() or auth_reauthenticate().

Designed to fix issues with using reverse proxies that rewrite URLs for
the application server. By using a standard self-relative form action,
it prevents issues where SCRIPT_NAME on the application server does not
match the URL that the client is using.

mod - core/form_api.php Diff File