aboutsummaryrefslogtreecommitdiff
path: root/t/noparanoia
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2019-02-10 16:30:07 +0000
committerSimon McVittie <smcv@debian.org>2019-02-26 21:44:07 +0000
commit67543ce1d62161fdef9dca198289d7dd7dceacc0 (patch)
treec38827ad186714a95d8cc27d2636a2fe031949ab /t/noparanoia
parente7b0d4a0fff8ed45a90c2efe8ef294bdf7c9bdac (diff)
downloadikiwiki-67543ce1d62161fdef9dca198289d7dd7dceacc0.tar
ikiwiki-67543ce1d62161fdef9dca198289d7dd7dceacc0.tar.gz
useragent: Don't allow non-HTTP protocols to be used
This prevents the aggregate plugin from being used to read the contents of local files via file:/// URLs. Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 't/noparanoia')
-rw-r--r--t/noparanoia/LWPx/ParanoidAgent.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/noparanoia/LWPx/ParanoidAgent.pm b/t/noparanoia/LWPx/ParanoidAgent.pm
new file mode 100644
index 000000000..751e80ce6
--- /dev/null
+++ b/t/noparanoia/LWPx/ParanoidAgent.pm
@@ -0,0 +1,2 @@
+# make import fail
+0;