From 6de3759a1b7a74492845c76e1f0bd1078e2220c7 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 14 Aug 2005 12:18:34 +0200 Subject: 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 --- lib/exe/detail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/exe/detail.php') 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 -- cgit v1.2.3