underscore is ok

svn path=/trunk/KDE/kdelibs/; revision=940245
This commit is contained in:
Aaron J. Seigo 2009-03-16 23:46:54 +00:00
parent ce6ac2d4d3
commit e74e51a285

View File

@ -317,7 +317,7 @@ bool Package::installPackage(const QString &package,
// Ensure that package names are safe so package uninstall can't inject
// bad characters into the paths used for removal.
QRegExp validatePluginName("^[\\w-\\.]+$"); // Only allow letters, numbers, underscore and period.
QRegExp validatePluginName("^[\\w-_\\.]+$"); // Only allow letters, numbers, underscore and period.
if (!validatePluginName.exactMatch(targetName)) {
kWarning() << "Package plugin name " << targetName << "contains invalid characters";
return false;