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?  (Read 5708 times)

0 Members and 1 Guest are viewing this topic.

BMWHeaven

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • http://www.bmwheaven.com
Bug?
« on: October 05, 2003, 07:56:15 pm »

Hi,

I was searching for the Bug-report forum, but couldn't find it...

Here is the bug I found (at least, I think it's a bug).

When sending an e-card to myself (for testing purposes), I get a message with html tags and everything, like looking at the source of a webpage.
I'm opening the mail with Outlook Express 6 - Windows Xp Prof SP1.

After a few hours I discovered the problem, it's in the Coppermine/include/mailer.inc.php file, in lines 32-37.
Change this code:

Code: [Select]
               $extra_headers         = "From: $sender_name <$sender_email>\r\n".
                                            "MIME-Version: 1.0\r\n".
                                            "Content-type: $type; charset=" . $charset . "\r\n".
                                            "Content-transfer-encoding: 8bit\r\n".
                                            "Date: " . gmdate('D, d M Y H:i:s', time()) . " UT\r\n".
                                            "X-Mailer: Coppermine Photo Gallery\r\n";


Into:
Code: [Select]
               $extra_headers         = "From: $sender_name <$sender_email>\n".
                                            "MIME-Version: 1.0\n".
                                            "Content-type: $type; charset=" . $charset . "\n".
                                            "Content-transfer-encoding: 8bit\n".
                                            "Date: " . gmdate('D, d M Y H:i:s', time()) . " UT\n".
                                            "X-Mailer: Coppermine Photo Gallery\n";



If anyone has problems with my solution, please inform me :).
Thanks for reading,

Tiger

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://1028.no-ip.com
Bug?
« Reply #1 on: October 07, 2003, 07:55:30 pm »

I've same problem B4, but it's fixed when I config the mailer.inc.php" file to "$config['smtp_host']="localhost"  :lol:

ps. It is running on my own server with sendmail.


Tiger
www.xtrasky.com
Logged

outerverse

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://www.black-blade.net
That's weird.
« Reply #2 on: October 08, 2003, 05:02:06 am »

I'm running the same as you, but I didn't get that problem...although I'm using SendMail and not SMTP to send my e-cards.
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Bug?
« Reply #3 on: October 14, 2003, 02:51:39 am »

This problem is particular to Outlook and the above fix (changing \r\n to \n should work...)

Kurse

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: That's weird.
« Reply #4 on: October 15, 2003, 06:38:07 pm »

Quote from: "outerverse"
I'm running the same as you, but I didn't get that problem...although I'm using SendMail and not SMTP to send my e-cards.


sendmail is smtp

smtp = simple mail transport protocol

There are other smtp agents, but sendmail is the default on on most Linux machines

smtp is a protocol, same as http, pop3, ftp, etc are protocols
sendmail is the smtp agent, or daemon, just as IIS or apache is a http agent
Logged
Pages: [1]   Go Up
 

Page created in 0.039 seconds with 19 queries.