OSDN Git Service
MERGE: リビジョン1792の一部。getBookmarklet()の変更。
getBookmarklet()で返されるJavaScriptのコード中で、文字列をx-www-urlencodedに従ってエンコードする目的でescape()を使っていた。しかしこれは、JavaScriptの言語仕様であるStandard
ECMA Script-262に定義されているencodeURIComponent()でエンコードされるべきものである。
これにより、コミットf29dc242d5f30a1394ad4174e7c87e12076e9fc2で指摘されたバグを修正する。
Revision 1792:
REMOVE: bookmarklet registering to Windows operating system
This function heavily depends on Windows operating system and hard to
maintain for us. There is no alternatives after this commit.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1792
Standard ECMA-262 (ECMAScript Language Specification 5th Edition)
http://www.ecma-international.org/publications/standards/Ecma-262.htm
15.1.3 URI Handling Function Properties
15.1.3.1 decodeURI(encodeedURI)
15.1.3.2 decodeURIComponent(encodedURIComponent)
15.1.3.3 encodeURI(uri)
15.1.3.4 encodeURIComponent(uriComponent)
Microsoft Developer Network
JavaScript Reference
decodeURI Function (JavaScript)
http://msdn.microsoft.com/en-us/library/ht8a077w(v=vs.94).aspx
decodeURIComponent Function (JavaScript)
http://msdn.microsoft.com/en-us/library/91b80x6x(v=vs.94).aspx
encodeURI Function (JavaScript)
http://msdn.microsoft.com/en-us/library/xh9be5xc(v=vs.94).aspx
encodeURIComponent Function (JavaScript)
http://msdn.microsoft.com/en-us/library/aeh9cef7(v=vs.94).aspx
escape Function (JavaScript)
http://msdn.microsoft.com/en-us/library/9yzah1fh(v=vs.94).aspx
unescape Function (JavaScript)
http://msdn.microsoft.com/en-us/library/dz4x90hk(v=vs.94).aspx
Mozilla Developer Network
JavaScript Reference
decodeURI
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/decodeURI
decodeURIComponent
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/decodeURIComponent
encodeURI
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/encodeURI
encodeURIComponent
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/encodeURIComponent
escape
https://developer.mozilla.org/ja/DOM/window.escape
unescape
https://developer.mozilla.org/ja/DOM/window.unescape
NOTE:
decodeURI/decodeURIComponent/encodeURI/encodeURIComponent are in
specification,
but escape/unescape is defferent for each vendor's implement.
For example, Microsoft defines it as one of Global Object
http://msdn.microsoft.com/en-us/library/52f50e9t(v=vs.94).aspx
But Mozilla define it as one of methods in DOM Window Object
https://developer.mozilla.org/ja/DOM/window
NOTE:
urldecode() already applied to each elements in
$_GET/$_POST/$_REQUEST/$_COOKIE
http://php.net/manual/en/function.urldecode.php
rawurldecode()
http://www.php.net/manual/en/function.rawurldecode.php
urlencode()
http://www.php.net/manual/en/function.rawurlencode.php
rawurldecode()
http://www.php.net/manual/en/function.urldecode.php