small bug in searchnew.php small bug in searchnew.php
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

small bug in searchnew.php

Started by Andi, March 03, 2006, 09:40:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andi

Hi Team :)

  Coppermine version: 1.4.5
  $Source: /cvsroot/coppermine/stable/searchnew.php,v $
  $Revision: 1.19 $
  $Author: gaugau $
  $Date: 2006/03/02 08:17:40 $

at line 242 is the following code:
Quotecpg_die(ERROR, sprintf($lang_db_input_php['err_invalid_fext'], $CONFIG['allowed_file_extensions']), __FILE__, __LINE__);

$lang_db_input_php is in this function getfoldercontent() not available. This causes a emty error-message, like this:

QuoteFehler


Datei: /usr/export/www/vhosts/funnetwork/hosting/schnikemike/schninuke/modules/Gallery/searchnew.php - Zeile: 242



solution:

add this at the top of the file:
define('DB_INPUT_PHP', true);


and add Global $lang_db_input_php in the function-header
hope, I could help you... :)

Joachim Müller

applied fix as suggested to stable and devel branch of svn. Thanks for spotting.