Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Troubleshooting and Problems

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-21-2010, 10:51 AM
jweiss jweiss is offline
Junior Member
 
Join Date: Jun 2010
Posts: 4
Unhappy slashes missing from outgoing emails

For some reason, osTicket is stripping slashes out of outgoing emails. They appear just fine on the site. This has led to some confusion when we're trying to tell someone to go to a certain path on their local drive.

Our version of osTicket is heavily modified so this bug is likely something we've introduced so all I'm asking is for some pointers on where to start looking. We're using the PHP mail function for outgoing emails, not SMTP.

Thanks,
Jeremy
Reply With Quote
  #2  
Old 09-21-2010, 06:34 PM
jweiss jweiss is offline
Junior Member
 
Join Date: Jun 2010
Posts: 4
Post fixed... sort of.

I found the problem in INCLUDE_DIR.class.email.php

PHP Code:
$body stripslashes(preg_replace("/(\r\n|\r)/s""\n"trim($message))); 
For reasons I still don't claim to understand, the above regular expression was taking a line like

Code:
c:\Program Files\Whatever\
and turning it into

Code:
c:Program FilesWhatever
on all the outgoing messages. So I just removed the regex and settled for just trim-ing that line.

-jeremy
Reply With Quote


Reply

Bookmarks

Tags
mail, slashes, stripped

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:40 AM.