diff options
author | Johannes Krude <johannes@krude.de> | 2012-03-29 15:26:32 +0200 |
---|---|---|
committer | Johannes Krude <johannes@krude.de> | 2012-03-29 15:26:32 +0200 |
commit | d69a7022eb3afd368a7dcc9fb22b5bd1055fb069 (patch) | |
tree | f150b6fbe8c3bc1bf5fbfba1a2917b036be3d7fb /index.cgi | |
parent | ebdbba5c731e91645ce0609c9bbfe104a80a1804 (diff) |
Deny Remote Creation of folders at every writeable path in the Filesystem
Diffstat (limited to '')
-rwxr-xr-x | index.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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.") |