aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-09 22:57:08 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-09 22:57:08 +0100
commitce941b3a686fd4bec12377d8d303ad9995f32705 (patch)
tree90fcf0cd1aad24f352b4a8f67972bcb89c1aa3bc
parent0e53012e5c656f2a54e8550a7a43e7908862a289 (diff)
include title in mail link
-rw-r--r--dudle.rb2
-rwxr-xr-xhelp.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/dudle.rb b/dudle.rb
index 829b8b0..7fb3609 100644
--- a/dudle.rb
+++ b/dudle.rb
@@ -29,7 +29,7 @@ require "config"
require "charset"
class Dudle
- attr_reader :html, :table, :urlsuffix, :css
+ attr_reader :html, :table, :urlsuffix, :css, :title
def tabs(active_tab)
ret = "<div id='tabs'><ul>"
tabs = []
diff --git a/help.rb b/help.rb
index 7935aea..f553dbb 100755
--- a/help.rb
+++ b/help.rb
@@ -28,7 +28,7 @@ $d = Dudle.new("Help")
$d << <<END
The link to your poll is:
<pre>#{SITEURL}</pre>
-<a href='mailto:?subject=dudle%20link&amp;body=#{SITEURL}'>Send this link via email...</a>
+<a href='mailto:?subject=link%20to%20dudle%20poll%20about%20#{CGI.escapeHTML(CGI.escape($d.title).gsub("+","%20"))}&amp;body=#{SITEURL}'>Send this link via email...</a>
<form method='get' action='.'>
<div>
<input type='submit' value='To the Vote interface' />