aboutsummaryrefslogtreecommitdiff
path: root/chrome
diff options
context:
space:
mode:
authorEinar Egilsson2009-10-16 13:56:15 +0000
committerEinar Egilsson2009-10-16 13:56:15 +0000
commit31f4e4a67811467aefa45a4a42df36cd853602ba (patch)
tree31a49980c5552d4f9665fe9160eb0d4a4addcbe4 /chrome
parentb5ad01ad2749fcaa4b2fac94d22bd4f2c7f98ad4 (diff)
Version 2.0 candidate
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@273 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome')
-rw-r--r--chrome/content/ui/help.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/content/ui/help.html b/chrome/content/ui/help.html
index 0ce6769..19105a4 100644
--- a/chrome/content/ui/help.html
+++ b/chrome/content/ui/help.html
@@ -19,6 +19,7 @@
<li><a href="#excludepattern">Exclude pattern</a></li>
<li><a href="#redirectto">Redirect to</a></li>
<li><a href="#patterntype">Pattern type</a></li>
+ <li><a href="#unescapematches">Unescape matches</a></li>
</ul>
</li>
<li><a href="#wildcards">Wildcards</a></li>
@@ -74,6 +75,14 @@
<li><a name="patterntype"></a><strong>Pattern type:</strong> This specifies how Redirector should interpret the patterns, either as
<a href="#wildcards">wildcards</a> or <a href="#regularexpressions#">regular expressions</a>.</li>
+
+ <li><a name="unescapematches"></a><strong>Unescape matches:</strong> A common usage of Redirector is to catch urls like
+ <em>http://foo.com/redirect.php?url=http%3A%2F%2Fbar%2Ecom%2Fpath</em> and try to catch the url parameter and redirect to it. A pattern
+ like <em>http://foo.com/redirect.php?url=*</em> might be used for that purpose. However, if the url parameter is <em>escaped</em> (also known
+ as <em>urlencoded</em>) then that won't work. In the url above we see that it starts with <em>http%3A%2F%2F</em> instead of <em>http://</em>, and Firefox
+ won't accept this as a new url to redirect to. So, in cases like these you can check the <em>Unescape matches</em> option and then all
+ matches will be unescaped (turned from e.g. <em>http%3A%2F%2Fbar%2Ecom</em> to <em>http://bar.com</em>) before being inserted into the target url.
+ </li>
</ul>
</p>