From d69a7022eb3afd368a7dcc9fb22b5bd1055fb069 Mon Sep 17 00:00:00 2001 From: Johannes Krude Date: Thu, 29 Mar 2012 15:26:32 +0200 Subject: Deny Remote Creation of folders at every writeable path in the Filesystem --- index.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.cgi') 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.") -- cgit v1.2.3