From: Brion Vibber Date: Sat, 3 Apr 2010 17:08:13 +0000 (-0700) Subject: Ticket #2273: Fix bookmarklet with URls with special characters X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d3e47797485d671bd6f806cd0ba72f499e049a66;p=quix0rs-gnu-social.git Ticket #2273: Fix bookmarklet with URls with special characters The tartget page's URL was not being URL-escaped when passed as a parameter into the query string. Result was that any URL-encoded bytes in the link would be unescaped and interpreted as raw UTF-8 when our bookmarklet post target page reads its parameters; this would break 8-bit high characters (eg a Latin-1 %FC turning into a corrupt UTF-8 byte) or reserved chars that needed to be kept escaped (eg a %3F turning into literal ?) Unfortunately as this was a bug in the original bookmarklet's JS code, this'll only fix it for people who grab a fresh copy of the bookmarklet. --- diff --git a/doc-src/bookmarklet b/doc-src/bookmarklet index bab0ad445f..ae359d2dbe 100644 --- a/doc-src/bookmarklet +++ b/doc-src/bookmarklet @@ -2,4 +2,4 @@ A bookmarklet is a small piece of javascript code used as a bookmark. This one w Drag-and-drop the following link to your bookmarks bar or right-click it and add it to your browser favorites to keep it handy. -Post to %%site.name%% +Post to %%site.name%%