Commit 4217bb2b authored by Loïc DAYOT's avatar Loïc DAYOT

fix: pb of quotes in campaign edition

Quote in campaign title causes trunc when editing - fixed

close #56
parent a0f79dac
......@@ -177,7 +177,9 @@ class campaign {
$html.= "<input type='hidden' name='camp[id]' value='{$this->id}' />";
$html.= "<input type='hidden' name='id' value='{$this->id}' />";
}
$html .= "<tr class='odd'><td>Nom*</td><th><input type='text' required name='camp[name]' value='{$this->name}' title=\"Saisir un nom de préférence unique qui servira de code pour reconnaître la campagne.\"/></th></tr>\n";
$html .= "<tr class='odd'><td>Nom*</td><th><input type='text' required name='camp[name]' value=\"".
stripslashes(htmlentities($this->name)).
"\" title=\"Saisir un nom de préférence unique qui servira de code pour reconnaître la campagne.\"/></th></tr>\n";
$html .= "<tr><td>Période*</td><th>".
"du <input type='date' required name=camp[start] value='". date("d/m/Y", $this->start). "' title=\"Date de début de la campagne, au format MYSQL aaaa-mm-jj.\" />".
"<br/> au <input type='date' required name=camp[end] value='". date("d/m/Y", $this->end). "' title=\"Date de fin de la campagne, au format jj/mm/aaaa.\" /></th></tr>\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment