diff options
author | Andrew Dolgov <[email protected]> | 2021-02-18 11:54:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-18 11:54:29 +0300 |
commit | 466cba39d86487ce3c81d7aeade96e9f9e4a119d (patch) | |
tree | 2e21056edf73e853319a05aa25b038c078c4cfd1 /plugins/af_redditimgur | |
parent | 1adb9bb6b643736706b746629b849df9cdf45e50 (diff) | |
parent | b888bc2091c6737846f54a729ee047e4693fd8e3 (diff) |
Merge branch 'master' of git.fakecake.org:fox/tt-rss
Diffstat (limited to 'plugins/af_redditimgur')
-rwxr-xr-x | plugins/af_redditimgur/init.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 63a23cd36..5066186db 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -41,9 +41,7 @@ class Af_RedditImgur extends Plugin { <form dojoType='dijit.form.Form'> - <?= \Controls\hidden_tag("op", "pluginhandler") ?> - <?= \Controls\hidden_tag("method", "save") ?> - <?= \Controls\hidden_tag("plugin", "af_redditimgur") ?> + <?= \Controls\pluginhandler_tags($this, "save") ?> <script type='dojo/method' event='onSubmit' args='evt'> evt.preventDefault(); @@ -633,6 +631,10 @@ class Af_RedditImgur extends Plugin { $entry->parentNode->insertBefore($img, $entry);*/ } + function csrf_ignore($method) { + return $method === "testurl"; + } + function testurl() { $url = clean($_POST["url"]); @@ -651,7 +653,6 @@ class Af_RedditImgur extends Plugin { <input type="hidden" name="op" value="pluginhandler"> <input type="hidden" name="method" value="testurl"> <input type="hidden" name="plugin" value="af_redditimgur"> - <input type="hidden" name="csrf_token" value="<?= $_SESSION["csrf_token"] ?>"> <fieldset> <label>URL:</label> <input name="url" size="100" value="<?= htmlspecialchars($url) ?>"></input> |