Browse files

xhtml compliance $id and $wdir not quoted in forms

  • Loading branch information...
1 parent 23eb1cc commit 4b5865662d5bd3add776507d808545177d0afb97 skodak committed Oct 26, 2004
Showing with 25 additions and 25 deletions.
  1. +25 −25 mod/resource/coursefiles.php
View
50 mod/resource/coursefiles.php
@@ -140,17 +140,17 @@ function set_value(txt) {
echo "<table><tr><td colspan=\"2\">";
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"".$ME."\">";
upload_print_form_fragment(1,array('userfile'),null,false,null,$course->maxbytes,0,false);
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
- echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+ echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"upload\" />";
echo " <input type=\"hidden\" name=\"sesskey\" value=\"$USER->sesskey\" />";
echo " </td><tr><td width=\"10\">";
echo " <input type=\"submit\" name=\"save\" value=\"$struploadthisfile\" />";
echo "</form>";
echo "</td><td width=\"100%\">";
echo "<form action=\"".$ME."\" method=\"get\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
- echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+ echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
echo " <input type=\"submit\" value=\"$strcancel\" />";
echo "</form>";
@@ -239,8 +239,8 @@ function set_value(txt) {
echo "<p>$strrenamefileto:";
echo "<table><tr><td>";
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
- echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+ echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"rename\" />";
echo " <input type=\"hidden\" name=\"oldname\" value=\"$file\" />";
echo " <input type=\"text\" name=\"name\" size=\"35\" value=\"$file\" />";
@@ -249,8 +249,8 @@ function set_value(txt) {
echo "</form>";
echo "</td><td>";
echo "<form action=\"".$ME."\" method=\"get\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
- echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+ echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
echo " <input type=\"submit\" value=\"$strcancel\" />";
echo "</form>";
@@ -278,17 +278,17 @@ function set_value(txt) {
echo "<p>$strcreatefolder:";
echo "<table><tr><td>";
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
- echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+ echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"mkdir\" />";
echo " <input type=\"text\" name=\"name\" size=\"35\" />";
echo " <input type=\"hidden\" name=\"sesskey\" value=\"$USER->sesskey\" />";
echo " <input type=\"submit\" value=\"$strcreate\" />";
echo "</form>";
echo "</td><td>";
echo "<form action=\"".$ME."\" method=\"get\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
- echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+ echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
echo " <input type=\"submit\" value=\"$strcancel\" />";
echo "</form>";
@@ -327,7 +327,7 @@ function set_value(txt) {
echo "<table><tr><td colspan=\"2\">";
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\" $onsubmit>";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"file\" value=\"$file\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"edit\" />";
@@ -338,8 +338,8 @@ function set_value(txt) {
echo "</form>";
echo "</td><td>";
echo "<form action=\"".$ME."\" method=\"get\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
- echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+ echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
echo " <input type=\"submit\" value=\"".get_string("cancel")."\" />";
echo "</form>";
@@ -383,16 +383,16 @@ function set_value(txt) {
echo "<p align=\"center\">".get_string("whattocallzip");
echo "<table><tr><td>";
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"zip\" />";
echo " <input type=\"text\" name=\"name\" size=\"35\" value=\"new.zip\" />";
echo " <input type=\"submit\" value=\"".get_string("createziparchive")."\" />";
echo "</form>";
echo "</td><td>";
echo "<form action=\"".$ME."\" method=\"get\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
- echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+ echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
echo " <input type=\"submit\" value=\"".get_string("cancel")."\" />";
echo "</form>";
@@ -420,8 +420,8 @@ function set_value(txt) {
}
echo "<center><form action=\"".$ME."\" method=\"get\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
- echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+ echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
echo " <input type=\"submit\" value=\"$strok\" />";
echo "</form>";
@@ -467,8 +467,8 @@ function set_value(txt) {
echo "</table>";
}
echo "<br /><center><form action=\"".$ME."\" method=\"get\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
- echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+ echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
echo " <input type=\"submit\" value=\"$strok\" />";
echo "</form>";
@@ -744,7 +744,7 @@ function displaydir ($wdir) {
echo "<td align=\"center\">";
if (!empty($USER->fileop) and ($USER->fileop == "move") and ($USER->filesource <> $wdir)) {
echo "<form action=\"".$ME."\" method=\"get\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"paste\" />";
echo " <input type=\"hidden\" name=\"sesskey\" value=\"$USER->sesskey\" />";
@@ -753,15 +753,15 @@ function displaydir ($wdir) {
}
echo "<td align=\"right\">";
echo "<form action=\"".$ME."\" method=\"get\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"mkdir\" />";
echo " <input type=\"submit\" value=\"$strmakeafolder\" />";
echo "</form>";
echo "</td>";
echo "<td align=\"right\">";
echo "<form action=\"".$ME."\" method=\"get\">";
- echo " <input type=\"hidden\" name=\"id\" value=$id />";
+ echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
echo " <input type=\"hidden\" name=\"action\" value=\"upload\" />";
echo " <input type=\"submit\" value=\"$struploadafile\" />";

0 comments on commit 4b58656

Please sign in to comment.