summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2015-01-03 02:59:47 +0100
committerBenny Baumann <BenBE@geshi.org>2015-01-03 02:59:47 +0100
commitde351d13cf6ccf7b2070c1693c0cff5eabd964c7 (patch)
tree554d476553ae3f62f78a107bedcfa23eebbfd613
parentba8c4e2885571be2473b75f9d479dc57adea7ed8 (diff)
downloadcacert-devel-de351d13cf6ccf7b2070c1693c0cff5eabd964c7.tar.gz
cacert-devel-de351d13cf6ccf7b2070c1693c0cff5eabd964c7.tar.xz
cacert-devel-de351d13cf6ccf7b2070c1693c0cff5eabd964c7.zip
bug 1354: Avoid producing too many intermediate variants
-rw-r--r--www/gpg.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/gpg.php b/www/gpg.php
index f9b3a71..70db756 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -421,10 +421,10 @@ function expandVariants($name) {
}
}
$variants = $vnew;
+ $variants = array_unique($variants);
}
$variants = array_filter($variants, function($a) { return false === strstr($a, "&"); } );
- $variants = array_unique($variants);
return $variants;
}