Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

"!" character shows in the template

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
bregidor
Smarty n00b


Joined: 16 Mar 2012
Posts: 2

PostPosted: Sat Mar 17, 2012 1:37 am    Post subject: "!" character shows in the template Reply with quote

Hi to All,

A "!" character seems to show up randomly in our template:

Example:

To view this message, click on this <a style="color: #3b5998;" href="{$sConfigUrl}inbox.html?id={$oMessage->messageId}&amp;user={$oMessage->addresseeHash|base64_encode}">link</a>:

But what is displayed when rendered is this.

To view this message, click on this ! link:

As you to notice there is an exclamation before the word link.

Another example is this:

this simple code <td bgcolor="#FFFFFF" becomes <td bgcolor="#F! FFFFF" when rendered


Can anyone have an idea on how or why this happens?


Thanks in advance..
Back to top
View user's profile Send private message
douglassdavis
Smarty Junkie


Joined: 21 Jan 2008
Posts: 541

PostPosted: Sat Mar 17, 2012 2:23 am    Post subject: Re: "!" character shows in the template Reply with quote

bregidor wrote:
Hi to All,

A "!" character seems to show up randomly in our template:

Example:

To view this message, click on this <a style="color: #3b5998;" href="{$sConfigUrl}inbox.html?id={$oMessage->messageId}&amp;user={$oMessage->addresseeHash|base64_encode}">link</a>:

But what is displayed when rendered is this.

To view this message, click on this ! link:

As you to notice there is an exclamation before the word link.

Another example is this:

this simple code <td bgcolor="#FFFFFF" becomes <td bgcolor="#F! FFFFF" when rendered


Can anyone have an idea on how or why this happens?


Thanks in advance..


Is this inside of an email by any chance? Showing up at the end of a long line? Email servers will sometimes add "! " to break up long lines.
Back to top
View user's profile Send private message
bregidor
Smarty n00b


Joined: 16 Mar 2012
Posts: 2

PostPosted: Sun Mar 18, 2012 7:09 pm    Post subject: Reply with quote

Yes, the following are email template rendered by smarty that will be send to our user..

Another thing is that it is only happening on our live site, in our developing site everything is working fine.

How can I prevent this from happening? Is anything I should do to our email servers so this issue will not happen again?

Thanks..
Back to top
View user's profile Send private message
douglassdavis
Smarty Junkie


Joined: 21 Jan 2008
Posts: 541

PostPosted: Mon Mar 19, 2012 1:00 am    Post subject: Reply with quote

bregidor wrote:
Yes, the following are email template rendered by smarty that will be send to our user..

Another thing is that it is only happening on our live site, in our developing site everything is working fine.

How can I prevent this from happening? Is anything I should do to our email servers so this issue will not happen again?

Thanks..




Make the lines less than 998 chars long.

Otherwise, I don't know much about email servers but I googled "exclamation mark email long line" to get more info.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP