Solved

how to escape the underscore in a link

Posted on 2010-08-12
4
389 Views
Last Modified: 2012-05-10
Hello,

I'm building a link that has an encrypted key that we generate and that key can include the underscore character.  I'm using the below link to post to some social sites and when the user clicks the link it strips off the "_".  Any ideas on how to escape this or how to build the link so that the "_" is included in the users request?

http://mysite/EDG_
0
Comment
Question by:cgray1223
  • 2
4 Comments
 
LVL 1

Expert Comment

by:earthsound
ID: 33421529
In HTML, the escape code for underscore is _
0
 
LVL 1

Expert Comment

by:boboudreau
ID: 33421583
You can try replacing the underscore with the unicode equivalent (perhaps they don't check for this value).

Any of these should work:

&#000005F
&#00005F
&#0005F
&#005F
&#05F
&#5F

0
 

Author Comment

by:cgray1223
ID: 33422574
maybe it's a facebook issue as other social sites handle it, but when I paste in http://linkcontextroot/EM6_  the escape code doesn't get converted to the _.  I need the _ to be interpreted as a _.  I tried the Unicodes as well
0
 
LVL 1

Accepted Solution

by:
boboudreau earned 500 total points
ID: 33422724
Can you try to handle this instead on your server?  I.e., if facebook won't change &#95 or &#005F, can you decrypt those into ASCII before using that string as a key for your web application?
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now