changeset 2:0d369fd33074

should not url encode special characters.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 11 Aug 2008 20:51:28 +0900
parents bebb38edfc61
children 520da387d211
files chrome/content/tinyurl.js
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/chrome/content/tinyurl.js	Mon Aug 11 20:36:59 2008 +0900
+++ b/chrome/content/tinyurl.js	Mon Aug 11 20:51:28 2008 +0900
@@ -237,10 +237,10 @@
 
 		// Encode URL (can't use encodeURIComponent, because TinyUrl.com will choke)
 		var url = this.original;
-       	url = url.replace(/\+/g, "%2B");
-		url = url.replace(/\?/g, '%3F');
-		url = url.replace(/&/g, '%26');
-		url = url.replace(/=/g, '%3D');
+//     	url = url.replace(/\+/g, "%2B");
+//		url = url.replace(/\?/g, '%3F');
+//		url = url.replace(/&/g, '%26');
+//		url = url.replace(/=/g, '%3D');
 
 		// Setup Request
 		this.request	= new XMLHttpRequest();