summaryrefslogtreecommitdiff
path: root/lib/exe/detail.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-08-14 12:18:34 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-08-14 12:18:34 +0200
commit6de3759a1b7a74492845c76e1f0bd1078e2220c7 (patch)
tree96975cbac21a72f29934013e1e6bd6f4711f60d7 /lib/exe/detail.php
parent706882dcf32358de6c9300ced7b5fcfa9ba28771 (diff)
downloadrpg-6de3759a1b7a74492845c76e1f0bd1078e2220c7.tar.gz
rpg-6de3759a1b7a74492845c76e1f0bd1078e2220c7.tar.bz2
URL rewriting for media files
This patch adds nicer URLs for media files (for fetch.php and detail.php) !IMPORTANT! Users of rewrite mode 1 need to adjust their .htaccess See .htaccess.dist for an example darcs-hash:20050814101834-7ad00-37ef1dea00affc9d808d9ee1289fa7454199cd24.gz
Diffstat (limited to 'lib/exe/detail.php')
-rw-r--r--lib/exe/detail.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/exe/detail.php b/lib/exe/detail.php
index 6e2ae96c6..21a34d721 100644
--- a/lib/exe/detail.php
+++ b/lib/exe/detail.php
@@ -11,8 +11,8 @@
//close session
session_write_close();
- $IMG = cleanID($_REQUEST['media']);
- $ID = getID();
+ $IMG = getID('media');
+ $ID = cleanID($_REQUEST['id']);
$ERROR = false;
// check image permissions