aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2011-04-19 17:58:40 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2011-04-19 17:58:40 +0200
commitcdeb2cfa81147b8e0f641dd84499ac4e232510ca (patch)
treeadaa6e86aebd4a2e8236cd0524ddaf229de6d711 /poll.rb
parent701a904936c0bf6e495c070bd887ca261a95d0aa (diff)
do not allow . in hmtlid
Diffstat (limited to 'poll.rb')
-rw-r--r--poll.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/poll.rb b/poll.rb
index 5c88c08..dd995fb 100644
--- a/poll.rb
+++ b/poll.rb
@@ -33,7 +33,7 @@ class String
if @@htmlidcache[self]
id = @@htmlidcache[self]
else
- id = self.gsub(/[^A-Za-z0-9_:.\-]/,".")
+ id = self.gsub(/[^A-Za-z0-9_\-]/,"_")
if @@htmlidncache[id]
@@htmlidncache[id] += 1
id += @@htmlidncache[id].to_s