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: BUG: Email gets lost in profile.php  (Read 5773 times)

0 Members and 1 Guest are viewing this topic.

bnies

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
    • http://www.nies.ch/
BUG: Email gets lost in profile.php
« on: December 12, 2005, 09:26:08 am »

Version: Coppermine 1.4.2

Problem Description: If the user option "Allow users to change their email address in profile" is set to "no" and the user opens profile.php and clicks "apply modification" the email address gets deleted in the MySQL database.

Cause: In the HTML form an appropriate hidden input type tag is missing.

Fix: In profile.php in function make_form() in the switch statement replace the case 'text' as follows:

Code: [Select]
        case 'text' :
            if ($form_data[$element[1]] == '') break;
            echo <<<EOT
    <tr>
        <td width="40%" class="tableb" height="25">
            {$element[2]}
        </td>
        <td width="60%" class="tableb">
            {$form_data[$element[1]]}
        </td>
    </tr>
    <input type="hidden" name="{$element[1]}" value="{$form_data[$element[1]]}">
EOT;
« Last Edit: December 15, 2005, 07:55:00 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: BUG: Email gets lost in profile.php
« Reply #1 on: December 15, 2005, 07:54:36 pm »

Fix committed to CVS.
Logged

yeomanjake

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
  • I am using v1.32
    • Jake's 'Yankee Station' - USS Hancock CV/CVA-19 Memorial
Re: BUG: Email gets lost in profile.php
« Reply #2 on: February 22, 2006, 06:32:32 am »

Fix committed to CVS.

Hello, I am using v1.3.2. and thank you for this fix; I do have a question, however, in Profiles.. Is there a way to get a User's name in a Profile to have a mailto: link (Email) so a person can send a message to a photo contributor?
please send reply to kenjaccard@bellsouth.net - thanks

Ken Jaccard
Logged
---------------------------------------------------------------------------------------
Come Visit a Premier Naval History Website and live the adventure!
Jake’s ‘Yankee Station’ - U.S.S. Hancock CV/CVA-19 Memorial
http://www.usshancockcv19.com .

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: BUG: Email gets lost in profile.php
« Reply #3 on: February 22, 2006, 10:49:49 am »

this is the cpg1.4.x bugs board. No support is given here, particularly not for cpg1.3.x. Thread locked.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.