diff options
author | Andreas Gohr <andi@splitbrain.org> | 2005-08-14 12:18:34 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2005-08-14 12:18:34 +0200 |
commit | 6de3759a1b7a74492845c76e1f0bd1078e2220c7 (patch) | |
tree | 96975cbac21a72f29934013e1e6bd6f4711f60d7 /lib | |
parent | 706882dcf32358de6c9300ced7b5fcfa9ba28771 (diff) | |
download | rpg-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')
-rw-r--r-- | lib/exe/detail.php | 4 | ||||
-rw-r--r-- | lib/exe/fetch.php | 2 |
2 files changed, 3 insertions, 3 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 diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php index 812850267..e647ea384 100644 --- a/lib/exe/fetch.php +++ b/lib/exe/fetch.php @@ -18,7 +18,7 @@ $mimetypes = getMimeTypes(); //get input - $MEDIA = $_REQUEST['media']; + $MEDIA = getID('media'); $CACHE = calc_cache($_REQUEST['cache']); $WIDTH = $_REQUEST['w']; $HEIGHT = $_REQUEST['h']; |