summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-05-29 15:58:46 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-05-29 15:58:46 +0200
commit21827dfb1c458edec68e1af4c75bca234f2abfac (patch)
tree2d3235c41ccf1fe3237542fbfb239489ae5a6430 /web
parent4c9da512af0456d61016144f7bb4bd5f775d6c12 (diff)
downloadaurweb-21827dfb1c458edec68e1af4c75bca234f2abfac.tar.xz
Properly encode ampersands in the RPC usage output
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/html/rpc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/rpc.php b/web/html/rpc.php
index b2c244b..18ad3ec 100644
--- a/web/html/rpc.php
+++ b/web/html/rpc.php
@@ -26,14 +26,14 @@ The methods currently allowed are: <br />
<li>msearch</li>
</ul> <br />
Each method requires the following HTTP GET syntax: <br />
-&nbsp;&nbsp; type=<i>methodname</i>&arg=<i>data</i>
+&nbsp;&nbsp; type=<i>methodname</i>&amp;arg=<i>data</i>
<br /><br />
Where <i>methodname</i> is the name of an allowed method, and <i>data</i> is the argument to the call.
<br /><br />
If you need jsonp type callback specification, you can provide an additional variable <i>callback</i>.
<br />
Example URL: <br />
- &nbsp;&nbsp; http://aur-url/rpc.php?type=search&arg=foobar&callback=jsonp1192244621103
+ &nbsp;&nbsp; http://aur-url/rpc.php?type=search&amp;arg=foobar&amp;callback=jsonp1192244621103
</body></html>
<?php
// close if statement