|
@@ -95,6 +95,12 @@ class Problem
|
|
|
return "\n - The requested linked library ".$job['packageName'].$this->constraintToText($job['constraint']).' has the wrong version installed or is missing from your system, make sure to have the extension providing it.';
|
|
|
}
|
|
|
|
|
|
+ if (!preg_match('{^[A-Za-z0-9_./-]+$}', $job['packageName'])) {
|
|
|
+ $illegalChars = preg_replace('{[A-Za-z0-9_./-]+}', '', $job['packageName']);
|
|
|
+
|
|
|
+ return "\n - The requested package ".$job['packageName'].' could not be found, it looks like its name is invalid, "'.$illegalChars.'" is not allowed in package names.';
|
|
|
+ }
|
|
|
+
|
|
|
if (!$this->pool->whatProvides($job['packageName'])) {
|
|
|
return "\n - The requested package ".$job['packageName'].' could not be found in any version, there may be a typo in the package name.';
|
|
|
}
|