[rt-users] escaping @ in email addresses in RT_SiteConfig.pm--todo or not to do?

Kelly F. Hickel kfh at mqsoftware.com
Mon Jan 30 14:05:22 EST 2006


The point is that double quotes interpret the contents, so you have to
use slash to escape the at sign.  Single quotes do not interpret the
contents, so no slash is needed.

So, use either a slash or use single quotes.....

-- 

Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh at mqsoftware.com

> -----Original Message-----
> From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-
> bounces at lists.bestpractical.com] On Behalf Of Schultz, Eric
> Sent: Monday, January 30, 2006 1:01 PM
> To: Hasan Muhammad; rt-users at lists.bestpractical.com
> Subject: RE: [rt-users] escaping @ in email addresses in
RT_SiteConfig.pm-
> -todo or not to do?
> 
> But you said it was (from your original email):
> 
> --when this address is set as...
>   Set($OwnerEmail, "admin at test-network.us");
> ...it results in this error...
>   Possible unintended interpolation of @test in string at
> /etc/rt/RT_SiteConfig.pm line 34.
> ...when the database is created (or dropped)
> 
> --when the @ is escaped as...
>   Set($OwnerEmail, "admin\@test-network.us");
> ...no error (message) occurs
> 
> > -----Original Message-----
> > From: rt-users-bounces at lists.bestpractical.com
> > [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf
> > Of Hasan Muhammad
> > Sent: Monday, January 30, 2006 10:57 AM
> > To: rt-users at lists.bestpractical.com
> > Subject: RE: [rt-users] escaping @ in email addresses in
> > RT_SiteConfig.pm --todo or not to do?
> >
> > --- "Schultz, Eric" <ESchultz at corp.untd.com> wrote:
> >
> > > You ran into a Perlism :-)  Single quotes don't interpolate
> > the special
> > > character '@' - double quotes do.  Which is why you have to
> > escape it
> > > with double quotes.
> >
> > ..but is not this line that caused the error message...
> > >   Set($OwnerEmail, "admin at test-network.us");
> > ...already escaped with double quotes?
> >
> > Hasan
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
> 
> Download a free sample chapter of RT Essentials from O'Reilly Media at
> http://rtbook.bestpractical.com
> 
> WE'RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
> San Francisco - Find out more at
> http://bestpractical.com/services/training.html




More information about the rt-users mailing list