Jdhaimson / smilealways

Chrome Extension to redirect www.amazon.com to smile.amazon.com
www.smilealways.io
GNU General Public License v2.0
146 stars 32 forks source link

url matching is not strict #15

Open lexical1 opened 9 years ago

lexical1 commented 9 years ago
  1. the filter will match http://www.amazon.com?foo-redirect=true for example.

Were this code reached with urls like foo://example.com/http://www.amazon.com it would inappropriately invoke redirectToSmile, and for http://www.amazon.com/bar?blahredirect=true it would not redirect.

changing the calls to match() would suffice to fix this.