Jelajahi Sumber

Security issue: Adding Security::remove_XSS function

Julio Montoya 15 tahun lalu
induk
melakukan
267dc40f2a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      main/inc/lib/dashboard.lib.php

+ 1 - 1
main/inc/lib/dashboard.lib.php

@@ -35,7 +35,7 @@ class DashboardManager
 
 		$table_cols = array('name', 'version', 'description');
 		echo '<h3>'.get_lang('DashboardPlugins').'</h3>';
-		echo '<form name="plugins" method="post" action="'.api_get_self().'?category='.$_GET['category'].'">';
+		echo '<form name="plugins" method="post" action="'.api_get_self().'?category='.Security::remove_XSS($_GET['category']).'">';
 		echo '<table class="data_table">';
 		echo '<tr>';
 		echo '<th width="50px">'.get_lang('Enabled').'</th>';