1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Enhancement: Enable and configure concat_space fixer

Closes GH-657.
This commit is contained in:
Andreas Möller
2022-08-22 19:04:47 +02:00
committed by GitHub
parent d9bcfed482
commit 57f505ed58
20 changed files with 58 additions and 55 deletions

View File

@@ -6,7 +6,7 @@ include_once __DIR__ . '/include/posttohost.inc';
// Force the account requests to php.net
if (!is_primary_site()) {
header('Location: https://www.php.net/'.$_SERVER['BASE_PAGE']);
header('Location: https://www.php.net/' . $_SERVER['BASE_PAGE']);
exit;
}
@@ -49,7 +49,7 @@ if (count($_POST) && (!isset($_POST['purpose']) || !is_array($_POST['purpose'])
if (empty($_POST['id'])) {
$error .= "You must supply a desired Git user id. <br>";
} elseif (!preg_match('!^[a-z]\w+$!', $_POST['id']) || strlen($_POST['id']) > 16) {
$error .= "Your user id must be from 1-16 characters long, start with ".
$error .= "Your user id must be from 1-16 characters long, start with " .
"a letter and contain nothing but a-z, 0-9, and _ <br>";
}
if (empty($_POST['fullname'])) {