--- thumbori.php 2014-03-18 17:16:21.718596464 +0530 +++ thumb.php 2014-03-18 17:39:10.738627702 +0530 @@ -106,6 +106,11 @@ $headers = array(); // HTTP headers to send $fileName = isset( $params['f'] ) ? $params['f'] : ''; + + if( $fileName == null ){ + wfThumbError( 400 , 'Invalid parameters or parameters missing. thumb.php takes 3 parameter, f for filename, w for width, p for pages within a file, if available. For more details please visit the manual page for '.' thumb.php .' ); + return; + } // Is this a thumb of an archived file? $isOld = ( isset( $params['archived'] ) && $params['archived'] );