forked from science-ation/science-ation
Properly handle "quote" marks in the title if the page gets resaved after the initial save
This commit is contained in:
parent
f3ad2c7f26
commit
6088779b37
@ -167,7 +167,7 @@ if($projectinfo)
|
||||
echo "<input type=\"hidden\" name=\"id\" value=\"$projectinfo->id\">\n";
|
||||
echo "<input type=\"hidden\" name=\"registration_id\" value=\"$registration_id\">\n";
|
||||
echo "<table>\n";
|
||||
echo "<tr><td>".i18n("Project Title").": </td><td><input type=\"text\" name=\"title\" size=\"50\" value=\"$projectinfo->title\" />".REQUIREDFIELD;
|
||||
echo "<tr><td>".i18n("Project Title").": </td><td><input type=\"text\" name=\"title\" size=\"50\" value=\"".htmlspecialchars($projectinfo->title)."\" />".REQUIREDFIELD;
|
||||
if($config['participant_project_title_charmax'])
|
||||
echo i18n("(Max %1 characters)",array($config['participant_project_title_charmax']));
|
||||
echo "</td></tr>\n";
|
||||
|
@ -197,7 +197,7 @@ function countwords()
|
||||
echo "<input type=\"hidden\" name=\"action\" value=\"save\">\n";
|
||||
echo "<input type=\"hidden\" name=\"id\" value=\"$projectinfo->id\">\n";
|
||||
echo "<table>\n";
|
||||
echo "<tr><td>".i18n("Project Title").": </td><td><input type=\"text\" name=\"title\" size=\"50\" value=\"$projectinfo->title\" />".REQUIREDFIELD;
|
||||
echo "<tr><td>".i18n("Project Title").": </td><td><input type=\"text\" name=\"title\" size=\"50\" value=\"".htmlspecialchars($projectinfo->title)."\" />".REQUIREDFIELD;
|
||||
if($config['participant_project_title_charmax'])
|
||||
echo i18n("(Max %1 characters)",array($config['participant_project_title_charmax']));
|
||||
echo "</td></tr>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user