mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-29 04:42:36 +00:00
Error for non-ASCII characters in the listing name
This commit is contained in:
parent
0dd8b4e572
commit
10a9cba326
@ -50,6 +50,7 @@ COM_JEDCHECKER_INFO_XML_NAME_PREFIXED="Listing name ('%s') starts with extension
|
||||
COM_JEDCHECKER_INFO_XML_NAME_VERSION="Version in name/title ('%s')"
|
||||
COM_JEDCHECKER_INFO_XML_NAME_JOOMLA="An extension name ('%s') can't start with the word 'Joomla'"
|
||||
COM_JEDCHECKER_INFO_XML_NAME_JOOMLA_DERIVATIVE="Extensions that use 'Joomla' or a derivative of Joomla! in the extension name ('%s') need to be licensed by OSM"
|
||||
COM_JEDCHECKER_INFO_XML_NAME_NON_ASCII="Listing name ('%s') contains non-ASCII characters"
|
||||
COM_JEDCHECKER_INFO_XML_URL_JOOMLA_DERIVATIVE="Domain names that use 'Joomla' or a derivative of Joomla! ('%1$s') need to be licensed by OSM. Please, check your domain name is listed on the <a href='%2$s'>Joomla! Trademark Approval Registry</a> page."
|
||||
COM_JEDCHECKER_INFO_XML_NAME_ADMIN_MENU="The admin menu name '%1$s' isn't the same as the extension name '%2$s'"
|
||||
COM_JEDCHECKER_INFO_XML_NAME_PLUGIN_FORMAT="The name of the plugin ('%s') must comply with the JED naming conventions in the form '{Type} - {Extension Name}'"
|
||||
|
@ -171,6 +171,12 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
|
||||
}
|
||||
}
|
||||
|
||||
// Check extension name consists of ASCII characters only
|
||||
if (preg_match('/[^\x20-\x7E]/', $extensionName))
|
||||
{
|
||||
$this->report->addError($file, JText::sprintf('COM_JEDCHECKER_INFO_XML_NAME_NON_ASCII', $extensionName));
|
||||
}
|
||||
|
||||
$this->validateDomain($file, (string) $xml->authorUrl);
|
||||
|
||||
if ($type === 'package' && (string) $xml->packagerurl !== (string) $xml->authorUrl)
|
||||
|
Loading…
Reference in New Issue
Block a user