View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05034Bug reportsSurvey participants (Tokens)public2011-04-11 11:30
Reporteruser12793Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Fixed in Version1.91RC6 
Summary05034: OPTOUTURL error within registration response email
Description

{OPTOUTURL} placeholder does not work in Public Registration Email

Steps To Reproduce
  1. Enable public registration for certain survey
  2. Insert {OPTOUTURL} somewhere in Public Registration Email template
  3. Activate survey, register and wait for reply email. There will be {OPTOUTURL} as a plain text instead of proper link.
Additional Information

It seems that a few lines in register.php should resolve this issue:

$fieldsarray["{OPTOUTURL}"]="<a href='$publicurl/optout.php?lang=".$baselang."&sid=$surveyid&token=$newtoken'>".htmlspecialchars("$publicurl/optout.php?lang=".$baselang."&sid=$surveyid&token=$newtoken")."</a>";
after line 146

and
$fieldsarray["{OPTOUTURL}"]="$publicurl/optout.phplang=".$baselang."&sid=$surveyid&token=$newtoken";
around line 151

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)9642
I will donate to the project if issue is resolvedNo
BrowserAll
Database type & versionMySQL 5.0.51a
Server OS (if known)Debian Linux
Webserver software & version (if known)Apache 2.2.9 (Debian)
PHP Version5.2.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

lemeur

lemeur

2011-03-20 08:06

developer   ~14474

Thx for the fix. Now committed to rev 9891 and 9892

c_schmitz

c_schmitz

2011-04-11 11:30

administrator   ~14770

1.91RC6 released.

Issue History

Date Modified Username Field Change
2011-03-15 18:40 user12793 New Issue
2011-03-20 08:06 lemeur Note Added: 14474
2011-03-20 08:06 lemeur Status new => resolved
2011-03-20 08:06 lemeur Fixed in Version => 1.91RC6
2011-03-20 08:06 lemeur Resolution open => fixed
2011-03-20 08:06 lemeur Assigned To => lemeur
2011-04-11 11:30 c_schmitz Note Added: 14770
2011-04-11 11:30 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)