summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Misc/BBCode.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-12-08 10:41:09 +0100
committerYorhel <git@yorhel.nl>2019-12-08 10:41:12 +0100
commit113ca9f820f24b81486b5fb66045aa5ac1cb49c5 (patch)
tree3f3957372a2b6dace43996fdfcf3100bb239556e /lib/VNWeb/Misc/BBCode.pm
parentbf8739d1a5bc777eff864b6314a1e9bc3f464946 (diff)
Fix json_api() URL matching + move URL parameters to POST body
For more consistency. Only exception right now is the password reset form, which still has parameters in the URL. Didn't convert it as that code doesn't use the elm_form() framework at the moment.
Diffstat (limited to 'lib/VNWeb/Misc/BBCode.pm')
-rw-r--r--lib/VNWeb/Misc/BBCode.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Misc/BBCode.pm b/lib/VNWeb/Misc/BBCode.pm
index 09501cb8..643ccbc4 100644
--- a/lib/VNWeb/Misc/BBCode.pm
+++ b/lib/VNWeb/Misc/BBCode.pm
@@ -2,7 +2,7 @@ package VNWeb::Misc::BBCode;
use VNWeb::Prelude;
-json_api '/js/bbcode.json', {
+json_api qr{/js/bbcode\.json}, {
content => { required => 0, default => '' }
}, sub {
elm_Content bb2html bb_subst_links shift->{content};