From d29ed30fedbe388dbff6e1301e83d01be5724141 Mon Sep 17 00:00:00 2001
From: anekos
Date: Fri, 19 Mar 2010 07:42:21 +0000
Subject: エンコードし忘れを修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37054 d0d07461-0603-4401-acd4-de1884942a52
---
bitly.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'bitly.js')
diff --git a/bitly.js b/bitly.js
index c519b75..01f40ab 100644
--- a/bitly.js
+++ b/bitly.js
@@ -1,5 +1,5 @@
/* NEW BSD LICENSE {{{
-Copyright (c) 2008, anekos.
+Copyright (c) 2008-2010, anekos.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@@ -38,7 +38,7 @@ let PLUGIN_INFO =
bit.ly
Get short alias by bit.ly
Bit.ly で短縮URLを得る
- 1.1.0
+ 1.1.1
anekos
new BSD License (Please read the source code comments of this plugin)
修正BSDライセンス (ソースコードのコメントを参照してください)
@@ -66,7 +66,7 @@ let PLUGIN_INFO =
else
throw new Error(req.statusText);
};
- req.open('GET', 'http://bit.ly/api?url=' + uri, callback);
+ req.open('GET', 'http://bit.ly/api?url=' + encodeURIComponent(uri), callback);
req.send(null);
return !callback && req.responseText;
}
--
cgit v1.2.3