This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Backslashes before quotes in mailing list


avatar
johngaltnh 0
From: -
Backslashes before quotes in mailing list

I'm still using version 1.3x of Storyteller.

I've run into a problem with mailing lists. When the mailing is sent as plaintext, a backslash shows up before each " or '. For example:

When interviewed, Joe Schmoe said \"I dunno why you are asking me a question!\"

Any ideas would be appreciated! Thank you!

Brett

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Backslashes before quotes in mailing list
avatar
Administrator
1340
From: Vienna, Austria
Backslashes before quotes in mailing list

Find in mod_mail.php this line:
$query = DBQuery("SELECT * FROM esselbach_st_mails WHERE mail_website = '$website'");


and add before:
   $newstitle = stripslashes($newstitle);

$newstext1 = stripslashes($newstext1);


This will remove the slashes from the emails
1 Re: Backslashes before quotes in mailing list
avatar
1
From: -
Backslashes before quotes in mailing list

Basically that’s how PHP parses quotes within quotes. It has to escape out the internal set of quotes with backslashes else it would think it would have to parse it as another line of code.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.