Permalink
Browse files

Fixed QPM Upload issue with mixed case usernames

  • Loading branch information...
1 parent a272ee7 commit 9123cfdc0385530f376b81b05729e918a79a1dfa @mikeho mikeho committed Dec 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 includes/data_classes/Package.class.php
@@ -125,7 +125,7 @@ public function PostContributionVersion(Person $objPerson, $strQpmXml, QDateTime
$intChangedFileCount = count($objQpmXml->package->changedFiles->children());
if ($strPackageName != $this->Token) throw new Exception('Invalid QPM Package Name: ' . $strPackageName);
- if ($strPackageUsername != $objPerson->Username) throw new Exception('Invalid QPM Package User: ' . $strPackageUsername);
+ if (trim(strtolower($strPackageUsername)) != trim(strtolower($objPerson->Username))) throw new Exception('Invalid QPM Package User: ' . $strPackageUsername);
if ($objContribution) {
if ($intVersionNumber != ($objContribution->CountPackageVersions() + 1)) throw new Exception('Invalid QPM Package Version: ' . $intVersionNumber);
} else {

0 comments on commit 9123cfd

Please sign in to comment.