summaryrefslogtreecommitdiffstats
path: root/rpm.php
diff options
context:
space:
mode:
Diffstat (limited to 'rpm.php')
-rw-r--r--rpm.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/rpm.php b/rpm.php
index b456554..88de40d 100644
--- a/rpm.php
+++ b/rpm.php
@@ -38,7 +38,9 @@ require 'include/main.php';
$what=(isset($_GET["what"]) ? $_GET["what"] : "%fedora");
$type=(isset($_GET["type"]) ? $_GET["type"] : "pecl");
-
+if (!in_array($type, array('composer', 'pecl', 'pear', 'R'))) {
+ $type = 'pecl';
+}
$ariane[] = array(
'url' => '#',
'text' => strtoupper($type). ' extensions in Fedora'
@@ -246,6 +248,7 @@ try {
case "pecl":
$filter = 'php-pecl-%';
break;
+ case "composer":
case "pear":
$filter = 'php-%';
break;