|
From: OryNider <ory...@us...> - 2007-12-18 01:01:30
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31943 Modified Files: functions_pafiledb.php Log Message: valid images screenshots extensions are not fobiten but allowed :P Index: functions_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_pafiledb.php,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** functions_pafiledb.php 23 Sep 2007 17:49:36 -0000 1.50 --- functions_pafiledb.php 18 Dec 2007 01:01:24 -0000 1.51 *************** *** 1774,1783 **** } ! $forbidden_ss_extensions = array('jpg', 'gif', 'png'); ! $ss_file_extension = $pafiledb_functions->get_extension( $ss_name ); ! if ( in_array( $ss_file_extension, $forbidden_ss_extensions ) ) { ! $this->error[] = 'You are not allowed to upload this type of screenshot image'; } --- 1774,1787 ---- } ! $allowed_ss_extensions = array('jpg', 'gif', 'png'); ! if ( !empty( $ss_name ) ) { ! $ss_file_extension = $pafiledb_functions->get_extension( $ss_name ); ! ! if ( !in_array( $ss_file_extension, $allowed_ss_extensions ) ) ! { ! $this->error[] = 'You are not allowed to upload this type of screenshot image'; ! } } |