diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-01-10 14:50:30 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-10 14:50:30 -0800 |
commit | d557b2a63e2ea424965fb53be9f6b76ad3f18015 (patch) | |
tree | 0bb2fe2e575db5a8352d286cfdec8c48b7905c5c /modules/gallery/controllers | |
parent | 2826b70bec2fa6d9c852bf62f6ecc440839679ad (diff) |
Allow File_Proxy_Controller to run in private gallery mode since it
does all the right permission checks. This prevents a hotlink to a
private photo in a private gallery from kicking the user out to a
login page. Fixes #1594.
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r-- | modules/gallery/controllers/file_proxy.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/controllers/file_proxy.php b/modules/gallery/controllers/file_proxy.php index 22854fbd..c6051dfd 100644 --- a/modules/gallery/controllers/file_proxy.php +++ b/modules/gallery/controllers/file_proxy.php @@ -27,6 +27,7 @@ * input is sanitized against the database before we perform any file I/O. */ class File_Proxy_Controller extends Controller { + const ALLOW_PRIVATE_GALLERY = true; public function __call($function, $args) { // request_uri: gallery3/var/trunk/albums/foo/bar.jpg $request_uri = rawurldecode(Input::instance()->server("REQUEST_URI")); |