diff options
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']; |