Browse Source

! if mod's name contains html and or entities all the pages where the mod name appears would be xhtml invalid

emanuele 12 years ago
parent
commit
1608512ab0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Sources/Subs-Package.php

+ 2 - 1
Sources/Subs-Package.php

@@ -427,7 +427,7 @@ function loadInstalledPackages()
  */
 function getPackageInfo($gzfilename)
 {
-	global $boarddir, $sourcedir;
+	global $boarddir, $sourcedir, $smcFunc;
 
 	// Extract package-info.xml from downloaded file. (*/ is used because it could be in any directory.)
 	if (strpos($gzfilename, 'http://') !== false)
@@ -462,6 +462,7 @@ function getPackageInfo($gzfilename)
 	$package = $packageInfo->to_array();
 	$package['xml'] = $packageInfo;
 	$package['filename'] = $gzfilename;
+	$package['name'] = $smcFunc['htmlspecialchars']($package['name']);
 
 	if (!isset($package['type']))
 		$package['type'] = 'modification';