summaryrefslogtreecommitdiff
path: root/web/template/actions_form.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-14 01:57:19 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-15 22:48:32 +0200
commit03486c3b6feafb18f00b0e0c092a1bd4ac2f3903 (patch)
treef91bbdf64c725e35c7f08ac930e7fcd2a1f066c6 /web/template/actions_form.php
parent2425f963f8ad45292c217914b5fee1ed18104c26 (diff)
Use virtual paths for package details
Extend the routing front/back ends to allow for using "/package/$pkgname/" for individual packages. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/actions_form.php')
-rw-r--r--web/template/actions_form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/actions_form.php b/web/template/actions_form.php
index 9cd5024..045022d 100644
--- a/web/template/actions_form.php
+++ b/web/template/actions_form.php
@@ -1,5 +1,5 @@
<div class="box">
- <form action="<?php echo get_uri('/packages/'); ?>?ID=<?php echo $row['ID'] ?>" method="post">
+ <form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
<fieldset>
<input type="hidden" name="IDs[<?php echo $row['ID'] ?>]" value="1" />
<input type="hidden" name="ID" value="<?php echo $row['ID'] ?>" />