aboutsummaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
authorJohannes Krude <johannes@krude.de>2012-03-29 15:26:32 +0200
committerJohannes Krude <johannes@krude.de>2012-03-29 15:26:32 +0200
commitd69a7022eb3afd368a7dcc9fb22b5bd1055fb069 (patch)
treef150b6fbe8c3bc1bf5fbfba1a2917b036be3d7fb /index.cgi
parentebdbba5c731e91645ce0609c9bbfe104a80a1804 (diff)
Deny Remote Creation of folders at every writeable path in the Filesystem
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.cgi b/index.cgi
index ddbdc0d..905ddae 100755
--- a/index.cgi
+++ b/index.cgi
@@ -44,7 +44,7 @@ if $cgi.include?("create_poll") && $cgi.include?("poll_url")
end
- if !(POLLURL =~ /^[\w\-_]*$/)
+ if !(POLLURL =~ /\A[\w\-_]*\Z/)
createnotice = _("Custom address may only contain letters, numbers, and dashes.")
elsif File.exist?(POLLURL)
createnotice = _("A Poll with this address already exists.")