Skip to main content
Participant
April 29, 2008
Question

CFLOGIN issue with apostrophe

  • April 29, 2008
  • 1 reply
  • 200 views
I have an issue where I have a name, such as O’Reilly, that I am using for the NAME in CFLOINGUSER
On that page if I output GETAUTHUSER, it outputs O’Reilly

When the user moves to a new page the Login information is lost and GETAUTHUSER is Blank

If the name does not contain an apostrophe everything is ok.


This topic has been closed for replies.

1 reply

Inspiring
April 30, 2008
I'm not sure if this will get you what you need but have you tried using the function PreserveSingleQuotes?

<cfloginuser name="#getUser.ID#,#PreserveSingleQuotes(getUser.UserName)#" password="#form.password#" roles="#getUser.role#"/>

You probably retyped the line of code above but, just in case, your form.password variable is not surrounded by pound signs and won't evaluate.

Hope that helps!
Craig