Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: small bug in searchnew.php  (Read 4491 times)

0 Members and 1 Guest are viewing this topic.

Andi

  • VIP
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 85
  • Join the Future
    • www.pragmamx.org
small bug in searchnew.php
« on: March 03, 2006, 09:40:38 am »

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:
Quote
cpg_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:

Quote
Fehler


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



solution:

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

and add Global $lang_db_input_php in the function-header
« Last Edit: May 13, 2006, 10:36:26 am by GauGau »
Logged
hope, I could help you... :)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: small bug in searchnew.php
« Reply #1 on: May 13, 2006, 10:36:05 am »

applied fix as suggested to stable and devel branch of svn. Thanks for spotting.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 18 queries.