hm, just found out that \w includes _
svn path=/trunk/KDE/kdelibs/; revision=940553
This commit is contained in:
parent
e74e51a285
commit
be9dc1758a
@ -317,7 +317,7 @@ bool Package::installPackage(const QString &package,
|
|||||||
|
|
||||||
// Ensure that package names are safe so package uninstall can't inject
|
// Ensure that package names are safe so package uninstall can't inject
|
||||||
// bad characters into the paths used for removal.
|
// 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)) {
|
if (!validatePluginName.exactMatch(targetName)) {
|
||||||
kWarning() << "Package plugin name " << targetName << "contains invalid characters";
|
kWarning() << "Package plugin name " << targetName << "contains invalid characters";
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user