Pārlūkot izejas kodu

Update filedelete.php

FusionPBX 6 gadi atpakaļ
vecāks
revīzija
3597531eaf
1 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 3 4
      filedelete.php

+ 3 - 4
filedelete.php

@@ -81,7 +81,7 @@
 		echo "				<td>".$text['label-path']."</td>";
 		echo "				<td>".$text['label-path']."</td>";
 		echo "			</tr>";
 		echo "			</tr>";
 		echo "			<tr>";
 		echo "			<tr>";
-		echo "				<td>".$folder."</td>";
+		echo "				<td>".escape($folder)."</td>";
 		echo "			</tr>";
 		echo "			</tr>";
 		echo "		</table>";
 		echo "		</table>";
 		echo "		<br />";
 		echo "		<br />";
@@ -90,11 +90,11 @@
 		echo "				<td>".$text['label-file-name']."</td>";
 		echo "				<td>".$text['label-file-name']."</td>";
 		echo "			</tr>";
 		echo "			</tr>";
 		echo "			<tr>";
 		echo "			<tr>";
-		echo "				<td><input type='text' name='file' value='".$file."'></td>";
+		echo "				<td><input type='text' name='file' value='".escape($file)."'></td>";
 		echo "			</tr>";
 		echo "			</tr>";
 		echo "			<tr>";
 		echo "			<tr>";
 		echo "				<td colspan='1' align='right'>";
 		echo "				<td colspan='1' align='right'>";
-		echo "					<input type='hidden' name='folder' value='$folder'>";
+		echo "					<input type='hidden' name='folder' value='".escape($folder)."'>";
 		echo "					<input type='hidden' name='token' id='token' value='". $_SESSION['token']. "'>";
 		echo "					<input type='hidden' name='token' id='token' value='". $_SESSION['token']. "'>";
 		echo "					<input type='submit' value='".$text['button-del-file']."'>";
 		echo "					<input type='submit' value='".$text['button-del-file']."'>";
 		echo "				</td>";
 		echo "				</td>";
@@ -106,5 +106,4 @@
 		//include the footer
 		//include the footer
 		require_once "footer.php";
 		require_once "footer.php";
 	}
 	}
-
 ?>
 ?>