aboutsummaryrefslogtreecommitdiff
path: root/module/calp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-16 22:24:57 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-16 23:28:34 +0200
commit53c003b8ac61d2c1e7373776cbb4914e10043b1d (patch)
tree61b801562f026995c38412a9d51fcf5a786ef2bd /module/calp
parentValidate that submitted event doesn't have invalid interval. (diff)
downloadcalp-53c003b8ac61d2c1e7373776cbb4914e10043b1d.tar.gz
calp-53c003b8ac61d2c1e7373776cbb4914e10043b1d.tar.xz
Minor cleaup.
Diffstat (limited to 'module/calp')
-rw-r--r--module/calp/server/routes.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/calp/server/routes.scm b/module/calp/server/routes.scm
index e8676e6f..877bd8f2 100644
--- a/module/calp/server/routes.scm
+++ b/module/calp/server/routes.scm
@@ -124,7 +124,7 @@
(define ical-namespace '(IC . "urn:ietf:params:xml:ns:icalendar-2.0"))
-(define root-script "window.onload = () => document.getElementsByTagName('a')[0].click()")
+(define root-script "window.onload = () => document.querySelector('a').click()")
;; TODO ensure encoding on all fields which take user provided data.
;; Possibly a fallback which strips everything unknown, and treats