aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-11-03 22:39:39 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-11-03 22:39:39 +0100
commit36ad61299dea617f2a3eea0760e0323857393d2f (patch)
tree78c5567578751752a3623574cbd768e602a46754
parent6481c721dd96d2e241820fb27b531d2d1ba9f792 (diff)
parent4525e547faa8781e37f86125110f28248eb67fd3 (diff)
Merge dev
-rw-r--r--CHANGELOG.md4
-rw-r--r--CREDITS.md2
-rw-r--r--app/install.php8
-rw-r--r--lib/Minz/Request.php2
4 files changed, 10 insertions, 6 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 828884546..167c5a29e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
# Changelog
-## 2015-xx-xx FreshRSS 1.1.4-beta
+## 2015-11-03 FreshRSS 1.2.0 / 1.3.0-beta
* Features
* Share with Movim [#992](https://github.com/FreshRSS/FreshRSS/issues/992)
@@ -8,10 +8,12 @@
* Security
* Invalid logins now return HTTP 403, to be easier to catch (e.g. fail2ban) [#1015](https://github.com/FreshRSS/FreshRSS/issues/1015)
* UI
+ * Remove "title" field during installation [#858](https://github.com/FreshRSS/FreshRSS/issues/858)
* Visual alert on categories containing feeds in error [#984](https://github.com/FreshRSS/FreshRSS/pull/984)
* I18n
* Italian [#1003](https://github.com/FreshRSS/FreshRSS/issues/1003)
* Misc.
+ * Support reverse proxy [#975](https://github.com/FreshRSS/FreshRSS/issues/975)
* Make auto-update server URL alterable [#1019](https://github.com/FreshRSS/FreshRSS/issues/1019)
diff --git a/CREDITS.md b/CREDITS.md
index 148eac021..b21e8be85 100644
--- a/CREDITS.md
+++ b/CREDITS.md
@@ -12,6 +12,8 @@ People are sorted by name so please keep this order.
* [Amaury Carrade](https://github.com/AmauryCarrade): [contributions](https://github.com/FreshRSS/FreshRSS/commits?author=AmauryCarrade)
* [ealdraed](https://github.com/ealdraed): [contributions](https://github.com/FreshRSS/FreshRSS/commits?author=ealdraed)
* [Luc Didry](https://github.com/ldidry): [contributions](https://github.com/FreshRSS/FreshRSS/commits?author=ldidry)
+* [Marcus Rohrmoser](https://github.com/mro):
+[contributions](https://github.com/FreshRSS/FreshRSS/commits?author=mro)
* [Marien Fressinaud](https://github.com/marienfressinaud): [contributions](https://github.com/FreshRSS/FreshRSS/commits?author=marienfressinaud), [Web](http://marienfressinaud.fr/)
* [Melvyn Laïly](https://github.com/yaurthek): [contributions](https://github.com/FreshRSS/FreshRSS/commits?author=yaurthek)
* [Nicolas Elie](https://github.com/nicolaselie): [contributions](https://github.com/FreshRSS/FreshRSS/commits?author=nicolaselie)
diff --git a/app/install.php b/app/install.php
index 9c878c95a..83526b60c 100644
--- a/app/install.php
+++ b/app/install.php
@@ -122,6 +122,8 @@ function saveStep1() {
function saveStep2() {
$user_default_config = Minz_Configuration::get('default_user');
if (!empty($_POST)) {
+ $system_default_config = Minz_Configuration::get('default_system');
+ $_SESSION['title'] = $system_default_config->title;
$_SESSION['old_entries'] = param('old_entries', $user_default_config->old_entries);
$_SESSION['auth_type'] = param('auth_type', 'form');
$_SESSION['default_user'] = substr(preg_replace('/[^a-zA-Z0-9]/', '', param('default_user', '')), 0, 16);
@@ -137,8 +139,7 @@ function saveStep2() {
$_SESSION['passwordHash'] = $passwordHash;
}
- if (empty($_SESSION['title']) ||
- empty($_SESSION['old_entries']) ||
+ if (empty($_SESSION['old_entries']) ||
empty($_SESSION['auth_type']) ||
empty($_SESSION['default_user'])) {
return false;
@@ -373,8 +374,7 @@ function freshrss_already_installed() {
}
function checkStep2() {
- $conf = !empty($_SESSION['title']) &&
- !empty($_SESSION['old_entries']) &&
+ $conf = !empty($_SESSION['old_entries']) &&
isset($_SESSION['mail_login']) &&
!empty($_SESSION['default_user']);
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index 1c8efaf7b..effb9943c 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -105,7 +105,7 @@ class Minz_Request {
} else {
$host = 'localhost';
}
-
+
if (!empty($_SERVER['HTTP_X_FORWARDED_PORT'])) {
$port = intval($_SERVER['HTTP_X_FORWARDED_PORT']);
} elseif (!empty($_SERVER['SERVER_PORT'])) {