Explorar o código

Security issue: Adding Security::remove_XSS function

Julio Montoya %!s(int64=15) %!d(string=hai) anos
pai
achega
267dc40f2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>';