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

Go Back   osTicket Forums > Project Tools > osTicket Bug Tracker > Bug

Issue Type Bug   Project osTicket Bug Tracker
Add shlashes in email
Category Unknown
Affected Version 1.6 rc4
Priority Unknown
Status Fixed
Fixed Version 1.6 rc5
Submitted 08-11-2008
Assigned Users (none) Tags (none)

issueid=97 08-11-2008 10:18 AM
Junior Member
Add shlashes in email

Hello,

If i use a premade reply like this :
Quote:
Blabla "blabla" blabla
I receive that :
Quote:
Blabla \"blabla\" blabla
Regards
Reply

08-15-2008 01:10 PM
Junior Member
 
This is patch. In include/class.misc.php, at the bottom, use stripshlales function like this :
Quote:
$subject = stripslashes(preg_replace("/(\r\n|\r|\n)/s",'', trim($subject)));
$message = stripslashes(preg_replace("/(\r\n|\r)/s", "\n", trim($message)));
Reply
02-04-2009 04:52 AM
Junior Member
 
this worked for me. thanks very much
Reply
03-27-2009 05:55 PM
Member
 
this did not work for me - around line 64 & 65:
Code:
$subject=stripslashes(preg_replace("/(\r\n|\r|\n)/s",'', trim($subject)));
$message = stripslashes(preg_replace("/(\r\n|\r)/s", "\n", trim($message)));
By doing this - the tickets actually showed the "\" on screen. And still showed them in the emails.

Why can't it be an easy fix to enable HTML outbound emails from this?
Reply
03-31-2009 08:17 PM
Member
 
Ah - turned on my Magic Quotes and the slashes are gone. And now we have a VB.NET Admin shell which sends the Response Emails for us which look a lot nicer in HTML. Now if I could only get the Site "New Ticket" to use HTML EMail... Still can't figure it out.
Reply

Issue Tools
Subscribe to this issue

All times are GMT -4. The time now is 02:53 PM.