Browse files

Got rid of all pv() functions, now consistently uses p() to print var…

…iables safely.
  • Loading branch information...
1 parent f9730ae commit 069bce6efcceda2598b3ddf581cf574bf3841afb martin committed Jul 6, 2002
Showing with 21 additions and 21 deletions.
  1. +8 −8 mod/survey/edit_form.html
  2. +8 −8 mod/survey/edit_form.phtml
  3. +5 −5 mod/survey/login_form.html
View
16 mod/survey/edit_form.html
@@ -5,43 +5,43 @@
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/surveytype.html", "info", "Survey type") ?>:</td>
<td><? print get_template_name($survey->template) ?>
- <input type="hidden" name=template value="<? pv($survey->template) ?>">
+ <input type="hidden" name=template value="<? p($survey->template) ?>">
</td>
</tr>
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/name.html", "info", "Survey name") ?>:</td>
- <td><input type="text" name="name" size=40 value="<? pv($survey->name) ?>">
+ <td><input type="text" name="name" size=40 value="<? p($survey->name) ?>">
<? formerr($err["name"]) ?>
</td>
</tr>
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/password.html", "info", "Password") ?>:</td>
- <td><input type="text" name="password" size=20 value="<? pv($survey->password) ?>">
+ <td><input type="text" name="password" size=20 value="<? p($survey->password) ?>">
<? formerr($err["password"]) ?>
</td>
</tr>
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/days.html", "info", "Available Days") ?>:</td>
- <td><input type="text" name="days" size=3 value="<? pv($survey->days) ?>">
+ <td><input type="text" name="days" size=3 value="<? p($survey->days) ?>">
<? formerr($err["days"]) ?>
</td>
</tr>
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/url.html", "info", "Course URL") ?>:</td>
- <td><input type="text" name="url" size=50 value="<? pv($survey->url) ?>">
+ <td><input type="text" name="url" size=50 value="<? p($survey->url) ?>">
<? formerr($err["url"]) ?>
</td>
</tr>
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/intro.html", "info", "Introduction") ?>:</td>
- <td><textarea name=intro rows=15 cols=50 wrap=virtual><? pv($survey->intro) ?></textarea>
+ <td><textarea name=intro rows=15 cols=50 wrap=virtual><? p($survey->intro) ?></textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<table><tr><td valign=top>
- <input type="hidden" name=id value="<? pv($survey->id) ?>">
+ <input type="hidden" name=id value="<? p($survey->id) ?>">
<input type="hidden" name=edit value="update">
<? if ($survey->status == "editing") { ?>
<input type="submit" value="Save changes">
@@ -50,7 +50,7 @@
<td valign=top>
<? if (get_responses_for_survey($survey->id) == 0) { ?>
<FORM name="delete" method="post" action="edit.php">
- <input type="hidden" name=id value="<? pv($survey->id) ?>">
+ <input type="hidden" name=id value="<? p($survey->id) ?>">
<input type="hidden" name=edit value="delete">
<input type="submit" value="Delete this survey">
</FORM>
View
16 mod/survey/edit_form.phtml
@@ -9,43 +9,43 @@
<tr valign=top>
<td><P>Survey type:</td>
<td><? print get_template_name($survey->template) ?>
- <input type="hidden" name=template value="<? pv($survey->template) ?>">
+ <input type="hidden" name=template value="<? p($survey->template) ?>">
</td>
</tr>
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/name.phtml", "info", "Survey name") ?>:</td>
- <td><input type="text" name="name" size=40 value="<? pv($survey->name) ?>">
+ <td><input type="text" name="name" size=40 value="<? p($survey->name) ?>">
<? formerr($err["name"]) ?>
</td>
</tr>
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/password.phtml", "info", "Password") ?>:</td>
- <td><input type="text" name="password" size=20 value="<? pv($survey->password) ?>">
+ <td><input type="text" name="password" size=20 value="<? p($survey->password) ?>">
<? formerr($err["password"]) ?>
</td>
</tr>
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/days.phtml", "info", "Available Days") ?>:</td>
- <td><input type="text" name="days" size=3 value="<? pv($survey->days) ?>">
+ <td><input type="text" name="days" size=3 value="<? p($survey->days) ?>">
<? formerr($err["days"]) ?>
</td>
</tr>
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/url.phtml", "info", "Course URL") ?>:</td>
- <td><input type="text" name="url" size=50 value="<? pv($survey->url) ?>">
+ <td><input type="text" name="url" size=50 value="<? p($survey->url) ?>">
<? formerr($err["url"]) ?>
</td>
</tr>
<tr valign=top>
<td><P><? link_to_popup_window("/mod/survey/docs/intro.phtml", "info", "Introduction") ?>:</td>
- <td><textarea name=intro rows=15 cols=50 wrap=hard><? pv($survey->intro) ?></textarea>
+ <td><textarea name=intro rows=15 cols=50 wrap=hard><? p($survey->intro) ?></textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<table><tr><td valign=top>
- <input type="hidden" name=id value="<? pv($survey->id) ?>">
+ <input type="hidden" name=id value="<? p($survey->id) ?>">
<input type="hidden" name=edit value="update">
<? if ($survey->status == "editing") { ?>
<input type="submit" value="Save changes">
@@ -54,7 +54,7 @@
<td valign=top>
<? if (get_responses_for_survey($survey->id) == 0) { ?>
<FORM name="delete" method="post" action="edit.php">
- <input type="hidden" name=id value="<? pv($survey->id) ?>">
+ <input type="hidden" name=id value="<? p($survey->id) ?>">
<input type="hidden" name=edit value="delete">
<input type="submit" value="Delete this survey">
</FORM>
View
10 mod/survey/login_form.html
@@ -9,35 +9,35 @@
<tr>
<td><P>Survey Password:<BR>(from your teacher)</td>
<td valign=top>
- <input type="password" name="password" size=20 value="<? pv($frm["password"]) ?>" >
+ <input type="password" name="password" size=20 value="<? p($frm["password"]) ?>" >
<? formerr($err["password"]) ?>
</td>
</tr>
<tr>
<td><P>Your first name:</td>
<td valign=top>
- <input type="text" name="firstname" size=20 value="<? pv($frm["firstname"]) ?>">
+ <input type="text" name="firstname" size=20 value="<? p($frm["firstname"]) ?>">
<? formerr($err["firstname"]) ?>
</td>
</tr>
<tr>
<td><P>Your last name:</td>
<td valign=top>
- <input type="text" name="lastname" size=20 value="<? pv($frm["lastname"]) ?>">
+ <input type="text" name="lastname" size=20 value="<? p($frm["lastname"]) ?>">
<? formerr($err["lastname"]) ?>
</td>
</tr>
<tr>
<td><P>Your email address:</td>
<td valign=top>
- <input type="text" name="email" size=20 value="<? pv($frm["email"]) ?>">
+ <input type="text" name="email" size=20 value="<? p($frm["email"]) ?>">
<? formerr($err["email"]) ?>
</td>
</tr>
<tr>
<td><P>Student ID Number:<BR>(optional)</td>
<td valign=top>
- <input type="text" name="idnumber" size=20 value="<? pv($frm["idnumber"]) ?>">
+ <input type="text" name="idnumber" size=20 value="<? p($frm["idnumber"]) ?>">
<? formerr($err["idnumber"]) ?>
</td>
</tr>

0 comments on commit 069bce6

Please sign in to comment.