com web/pecl: extended the license filename whitelist: public_html/release-upload.php

From: Date: Sun, 20 Oct 2013 09:02:19 +0000
Subject: com web/pecl: extended the license filename whitelist: public_html/release-upload.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-19914@lists.php.net to get a copy of this message
Commit: 3b786994d8de74b7e441e13c5bc49f530859b9e7 Author: Anatol Belski <ab@php.net> Sun, 20 Oct 2013 11:02:19 +0200 Parents: 3b45286c96939429ce1c1042dc2703d6fb5315e7 Branches: old_auth Link: http://git.php.net/?p=web/pecl.git;a=commitdiff;h=3b786994d8de74b7e441e13c5bc49f530859b9e7 Log: extended the license filename whitelist Changed paths: M public_html/release-upload.php Diff: diff --git a/public_html/release-upload.php b/public_html/release-upload.php index 4b34650..7ed1f8b 100644 --- a/public_html/release-upload.php +++ b/public_html/release-upload.php @@ -97,8 +97,16 @@ do { } /* Don't compare with basename($file_data["name"]), the license has - to be in the package root. */ - if (in_array($file_data["name"], array("LICENSE", "COPYING"))) { + to be in the package root. */ + $lic_fnames = array( + "LICENSE", + "COPYING", + "LICENSE.md", + "COPYING.md", + "LICENSE.txt", + "COPYING.txt" + ); + if (in_array($file_data["name"], $lic_fnames)) { $license_found = true; break; }

« previous php.pecl.cvs (#19914) next »