summaryrefslogtreecommitdiffstats
path: root/web/template/account_edit_form.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-09-15 10:02:10 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-18 00:59:29 +0200
commitd6f89f97c08d7eeb805246dc94a835057d53243d (patch)
tree391c79462c4c4353d35995b372ab11d7ce7cd3bc /web/template/account_edit_form.php
parent5c0de7825d2f1680a2a430410be49696aca35946 (diff)
downloadaurweb-d6f89f97c08d7eeb805246dc94a835057d53243d.tar.xz
Use URL rewriting for user account update page
The "UpdateAccount" page displays information as to whether an account update was successful. All POST account info goes to this page, so use it with sane URLs. Before: AUR_URL/account/?Action=UpdateAccount&U=userfoo After: AUR_URL/account/userfoo/update Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/account_edit_form.php')
-rw-r--r--web/template/account_edit_form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index 7da8e33..9b5b1d8 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -1,4 +1,4 @@
-<form action="<?php echo get_uri('/account/'); ?>" method="post">
+<form action="<?php echo get_user_uri($U) . 'update/'; ?>" method="post">
<fieldset>
<input type="hidden" name="Action" value="<?php echo $A ?>" />
<?php if ($UID): ?>