aboutsummaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
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.")