com web/pecl: case insensitive license file names should be valid: public_html/release-upload.php
| From: | Anatol Belski | Date: | Sun, 20 Oct 2013 09:29:35 +0000 |
| Subject: | com web/pecl: case insensitive license file names should be valid: public_html/release-upload.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-19915@lists.php.net to get a copy of this message | ||
Commit: 988ef2faccedb8a379b013a8b1d06b4de17a174a
Author: Anatol Belski <ab@php.net> Sun, 20 Oct 2013 11:29:35 +0200
Parents: 3b786994d8de74b7e441e13c5bc49f530859b9e7
Branches: old_auth
Link: http://git.php.net/?p=web/pecl.git;a=commitdiff;h=988ef2faccedb8a379b013a8b1d06b4de17a174a
Log:
case insensitive license file names should be valid
Changed paths:
M public_html/release-upload.php
Diff:
diff --git a/public_html/release-upload.php b/public_html/release-upload.php
index 7ed1f8b..bfe1704 100644
--- a/public_html/release-upload.php
+++ b/public_html/release-upload.php
@@ -99,12 +99,12 @@ do {
/* Don't compare with basename($file_data["name"]), the license has
to be in the package root. */
$lic_fnames = array(
- "LICENSE",
- "COPYING",
- "LICENSE.md",
- "COPYING.md",
- "LICENSE.txt",
- "COPYING.txt"
+ "LICENSE", "license",
+ "COPYING", "copying",
+ "LICENSE.md", "license.md",
+ "COPYING.md", "copying.md",
+ "LICENSE.txt", "license.txt",
+ "COPYING.txt", "copying.txt"
);
if (in_array($file_data["name"], $lic_fnames)) {
$license_found = true;