diff options
| author | 2013-12-22 15:09:29 +0100 | |
|---|---|---|
| committer | 2013-12-22 15:09:29 +0100 | |
| commit | 3a4260b8744a0deb331e78cff43567a386c8d9a8 (patch) | |
| tree | d8034a6cd57955630a488ce22931ffe48ccb7d6c /public/install.php | |
| parent | 4bcfd591f0192aaa17f934e9f56291c453815134 (diff) | |
Titre application maximum 25 caractères
Implémente https://github.com/marienfressinaud/FreshRSS/issues/274
Diffstat (limited to 'public/install.php')
| -rw-r--r-- | public/install.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/install.php b/public/install.php index 133e7fbe4..7fbae3436 100644 --- a/public/install.php +++ b/public/install.php @@ -214,10 +214,9 @@ function saveStep2 () { } $_SESSION['sel_application'] = sha1(uniqid(mt_rand(), true).implode('', stat(__FILE__))); - $_SESSION['title'] = addslashes ($_POST['title']); + $_SESSION['title'] = addslashes(substr(trim($_POST['title']), 0, 25)); $_SESSION['old_entries'] = $_POST['old_entries']; - if (!is_int (intval ($_SESSION['old_entries'])) || - $_SESSION['old_entries'] < 1) { + if ((!ctype_digit($_SESSION['old_entries'])) || ($_SESSION['old_entries'] < 1)) { $_SESSION['old_entries'] = 3; } $_SESSION['mail_login'] = addslashes ($_POST['mail_login']); @@ -588,6 +587,7 @@ function checkStep3 () { 'all' => $bd && $conn && $conf ? 'ok' : 'ko' ); } + function checkBD () { $error = false; |
