Fix error in decoding search parameters in URL
authorSteven Chan <steven3416@gmail.com>
Wed, 3 Sep 2014 21:03:43 +0000 (14:03 -0700)
committerSteven Chan <steven3416@gmail.com>
Wed, 3 Sep 2014 21:03:43 +0000 (14:03 -0700)
Was not using a possible delimiter; was not decoding all entities

Signed-off-by: Steven Chan <steven3416@gmail.com>
src/overdrive.coffee

index 68d945d..b0361ed 100644 (file)
@@ -48,7 +48,7 @@ require [
        search_params = (p) ->
                # Convert for example, '?a=1&b=2' to { a:1, b:2 }, 
                o =
-                       if xs = (decodeURI window.location.search)?.split('?')?[1]?.split('&')
+                       if xs = (decodeURIComponent window.location.search)?.split('?')?[1]?.split(/&|;/)
                                _.zipObject( x.split('=') for x in xs )
                        else
                                {}