• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

SSO cookie encoded, need to decode on JForum side

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My JForumSSO cookie is being set by a ColdFusion Application. If the user's screen name has an underscore in it, the cookie ends up with a %5F in it where the underscore belongs. I need to decode this on the JForum side, where the cookie is being read and its value used. I could just do a specific case string replacement, but I'm assuming that other "special" characters will come in encoded, too.

Has anyone run into this? How have you handled it?

Anyone have any words of wisdom for me?

Thanks,
Jennifer
[originally posted on jforum.net by jenamon]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
urldecode it.

:-)

something along the lines of:

[originally posted on jforum.net by jax]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, I'll try it, but I don't have much confidence in this being URLEncoded. What I've read lists the underscore as a safe character, and if I try to encode a string with an underscore, it doesn't change it at all. I'll try it, though.

Jennifer
[originally posted on jforum.net by jenamon]
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic