Browse Source

$smcFunc['htmlspecialchars'] on ManageLanguages

Signed-off-by: Suki <[email protected]>
Suki 11 years ago
parent
commit
7caa309779
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Sources/ManageLanguages.php

+ 3 - 2
Sources/ManageLanguages.php

@@ -66,7 +66,8 @@ function ManageLanguages()
  */
 function AddLanguage()
 {
-	global $context, $sourcedir, $forum_version, $boarddir, $txt, $smcFunc, $scripturl;
+	global $context, $sourcedir, $forum_version, $boarddir, $txt;
+	global $smcFunc, $scripturl;
 
 	// Are we searching for new languages courtesy of Simple Machines?
 	if (!empty($_POST['smf_add_sub']))
@@ -74,7 +75,7 @@ function AddLanguage()
 		// Need fetch_web_data.
 		require_once($sourcedir . '/Subs-Package.php');
 
-		$context['smf_search_term'] = htmlspecialchars(trim($_POST['smf_add']));
+		$context['smf_search_term'] = $smcFunc['htmlspecialchars'](trim($_POST['smf_add']));
 
 		$listOptions = array(
 			'id' => 'smf_languages',