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: Email "From" value is screwed up  (Read 6815 times)

0 Members and 1 Guest are viewing this topic.

jo_dadday

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Email "From" value is screwed up
« on: April 28, 2006, 02:26:50 am »

When I (the administrator) get emails notifying me of uploads or comments, the "from" value is
Code: [Select]
\"Gallery Name\" <email@example.com>is there any way to remove the slashes? Or even the quotation marks altogether?

Or just where in which file could i find the code so i can figure it out?

thanks,
Kelmo
« Last Edit: May 21, 2006, 11:00:57 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Email "From" value is screwed up
« Reply #1 on: April 28, 2006, 08:14:59 am »

link?
Logged

Amit Badkas

  • Dev Team member
  • Coppermine novice
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Amit's Blog
Re: Email "From" value is screwed up
« Reply #2 on: April 28, 2006, 08:23:38 am »

Hi,

Unable to replicate this bug on my cpg-1.4.4 installation. Please check again your 'Galley name' setting.

The code used to handle sender's name while sending mail is in 'include/mailer.inc.php' (function 'cpg_mail').

Amit :)
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Email "From" value is screwed up
« Reply #3 on: May 18, 2006, 09:40:22 pm »

I have the same problem. just never reported it. curious to find out why it does that.
Logged

Nibbler

  • Guest
Re: Email "From" value is screwed up
« Reply #4 on: May 18, 2006, 09:55:49 pm »

include/mailer.inc.php

Code: [Select]
if ($sender_name == '') { $sender_name = '"' . $CONFIG['gallery_name'] . '"'; }

Remove the extra quotes and see what happens.
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Email "From" value is screwed up
« Reply #5 on: May 19, 2006, 02:38:51 pm »

you mean from
Code: [Select]
if ($sender_name == '') { $sender_name = '"' . $CONFIG['gallery_name'] . '"'; }to
Code: [Select]
if ($sender_name == '') { $sender_name = ' ' . $CONFIG['gallery_name'] . ' '; } ?
Logged

Nibbler

  • Guest
Re: Email "From" value is screwed up
« Reply #6 on: May 19, 2006, 03:14:13 pm »

Code: [Select]
if ($sender_name == '') $sender_name = $CONFIG['gallery_name'];
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Email "From" value is screwed up
« Reply #7 on: May 21, 2006, 03:40:27 am »

thanks nibbler! it works great. :)
Logged

stardotstar

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
  • give it a name
    • arcHELI
Re: Email "From" value is screwed up
« Reply #8 on: June 13, 2006, 02:31:37 pm »

I have just reapplied this fix to my 1.4.8  board after doing it to 1.4.6 and so on...  Is this a bug or some anomoly that shouldn't be fixed in the point releases yet for some reason?  Just wondering if I have missed something here.

Will

BTW it is a fix that works well so I wonder why it has to be applied each time...
Logged
\x\\\\_

NetWhiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Email "From" value is screwed up
« Reply #9 on: September 13, 2006, 01:06:29 am »

Thank you for this fix. As an addition, what about this:

"Riley&#39;s Photo Gallery" <daddy@rileydupont.com>

How can I get it to convert the &#39; back to a ' ?

Thank you,
NetWhiz
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.