Bläddra i källkod

Merge pull request #697 from illori/img_in_admin_log

fixes #642 adding $smcFunc['htmlspecialchars'] to the log functions
Arantor 11 år sedan
förälder
incheckning
9f8cad5b88
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      Sources/ManageMembergroups.php

+ 2 - 2
Sources/ManageMembergroups.php

@@ -507,7 +507,7 @@ function AddMembergroup()
 		));
 
 		// We did it.
-		logAction('add_group', array('group' => $_POST['group_name']), 'admin');
+		logAction('add_group', array('group' => $smcFunc['htmlspecialchars']($_POST['group_name'])), 'admin');
 
 		// Go change some more settings.
 		redirectexit('action=admin;area=membergroups;sa=edit;group=' . $id_group);
@@ -996,7 +996,7 @@ function EditMembergroup()
 		));
 
 		// Log the edit.
-		logAction('edited_group', array('group' => $_POST['group_name']), 'admin');
+		logAction('edited_group', array('group' => $smcFunc['htmlspecialchars']($_POST['group_name'])), 'admin');
 
 		redirectexit('action=admin;area=membergroups');
 	}