1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 18:54:10 +01:00

Minor cleanup.

This commit is contained in:
Kris Maglione
2009-11-02 22:05:03 -05:00
parent 8224540d26
commit c159cf6efa
2 changed files with 3 additions and 8 deletions

View File

@@ -2140,10 +2140,7 @@ function StatusLine() //{{{
// ripped from Firefox; modified
function losslessDecodeURI(url) {
// 1. decodeURI decodes %25 to %, which creates unintended
// encoding sequences. Re-encode it, unless it's part of
// a sequence that survived decodeURI, i.e. one for:
// ';', '/', '?', ':', '@', '&', '=', '+', '$', ',', '#'
// (RFC 3987 section 3.2)
// encoding sequences.
url = url.split("%25").map(decodeURI).join("%25");
// 2. Re-encode whitespace so that it doesn't get eaten away
// by the location bar (bug 410726).