Skip to content

A free, self-hostable news aggregator…

Add a warning message to the API password section, add a log warning when a client uses GET, use POST in sample curl API usage (#8845)

Frans de Jonge93f989b97784
diff --git a/README.fr.md b/README.fr.md
index ce83560e9..5ae167fb3 100644
--- a/README.fr.md
+++ b/README.fr.md
@@ -233,7 +233,7 @@ Voir le [dépôt dédié à ces extensions](https://github.com/FreshRSS/Extensio
| English (en) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fen+%2F%28TODO%7CDIRTY%29%24%2F) |
| English (United States) (en-US) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fen-US+%2F%28TODO%7CDIRTY%29%24%2F) |
| Español (es) | ■■■■■■■■■・ 99% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fes+%2F%28TODO%7CDIRTY%29%24%2F) |
-| فارسی (fa) | ■■■■■■■■■・ 91% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffa+%2F%28TODO%7CDIRTY%29%24%2F) |
+| فارسی (fa) | ■■■■■■■■■・ 90% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffa+%2F%28TODO%7CDIRTY%29%24%2F) |
| Suomi (fi) | ■■■■■■■■■・ 93% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffi+%2F%28TODO%7CDIRTY%29%24%2F) |
| Français (fr) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffr+%2F%28TODO%7CDIRTY%29%24%2F) |
| עברית (he) | ■■■■・・・・・・ 42% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhe+%2F%28TODO%7CDIRTY%29%24%2F) |
@@ -246,9 +246,9 @@ Voir le [dépôt dédié à ces extensions](https://github.com/FreshRSS/Extensio
| Nederlands (nl) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fnl+%2F%28TODO%7CDIRTY%29%24%2F) |
| Occitan (oc) | ■■■■■■■・・・ 75% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Foc+%2F%28TODO%7CDIRTY%29%24%2F) |
| Polski (pl) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fpl+%2F%28TODO%7CDIRTY%29%24%2F) |
-| Português (Brasil) (pt-BR) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fpt-BR+%2F%28TODO%7CDIRTY%29%24%2F) |
+| Português (Brasil) (pt-BR) | ■■■■■■■■■・ 99% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fpt-BR+%2F%28TODO%7CDIRTY%29%24%2F) |
| Português (Portugal) (pt-PT) | ■■■■■■■■・・ 81% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fpt-PT+%2F%28TODO%7CDIRTY%29%24%2F) |
-| Русский (ru) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fru+%2F%28TODO%7CDIRTY%29%24%2F) |
+| Русский (ru) | ■■■■■■■■■・ 99% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fru+%2F%28TODO%7CDIRTY%29%24%2F) |
| Slovenčina (sk) | ■■■■■■■■・・ 82% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fsk+%2F%28TODO%7CDIRTY%29%24%2F) |
| Türkçe (tr) | ■■■■■■■■・・ 89% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ftr+%2F%28TODO%7CDIRTY%29%24%2F) |
| Українська (uk) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fuk+%2F%28TODO%7CDIRTY%29%24%2F) |
diff --git a/README.md b/README.md
index b2aecc42e..7e9e5a0b8 100644
--- a/README.md
+++ b/README.md
@@ -129,7 +129,7 @@ See the [repository dedicated to those extensions](https://github.com/FreshRSS/E
| English (en) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fen+%2F%28TODO%7CDIRTY%29%24%2F) |
| English (United States) (en-US) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fen-US+%2F%28TODO%7CDIRTY%29%24%2F) |
| Español (es) | ■■■■■■■■■・ 99% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fes+%2F%28TODO%7CDIRTY%29%24%2F) |
-| فارسی (fa) | ■■■■■■■■■・ 91% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffa+%2F%28TODO%7CDIRTY%29%24%2F) |
+| فارسی (fa) | ■■■■■■■■■・ 90% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffa+%2F%28TODO%7CDIRTY%29%24%2F) |
| Suomi (fi) | ■■■■■■■■■・ 93% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffi+%2F%28TODO%7CDIRTY%29%24%2F) |
| Français (fr) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffr+%2F%28TODO%7CDIRTY%29%24%2F) |
| עברית (he) | ■■■■・・・・・・ 42% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhe+%2F%28TODO%7CDIRTY%29%24%2F) |
@@ -142,9 +142,9 @@ See the [repository dedicated to those extensions](https://github.com/FreshRSS/E
| Nederlands (nl) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fnl+%2F%28TODO%7CDIRTY%29%24%2F) |
| Occitan (oc) | ■■■■■■■・・・ 75% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Foc+%2F%28TODO%7CDIRTY%29%24%2F) |
| Polski (pl) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fpl+%2F%28TODO%7CDIRTY%29%24%2F) |
-| Português (Brasil) (pt-BR) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fpt-BR+%2F%28TODO%7CDIRTY%29%24%2F) |
+| Português (Brasil) (pt-BR) | ■■■■■■■■■・ 99% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fpt-BR+%2F%28TODO%7CDIRTY%29%24%2F) |
| Português (Portugal) (pt-PT) | ■■■■■■■■・・ 81% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fpt-PT+%2F%28TODO%7CDIRTY%29%24%2F) |
-| Русский (ru) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fru+%2F%28TODO%7CDIRTY%29%24%2F) |
+| Русский (ru) | ■■■■■■■■■・ 99% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fru+%2F%28TODO%7CDIRTY%29%24%2F) |
| Slovenčina (sk) | ■■■■■■■■・・ 82% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fsk+%2F%28TODO%7CDIRTY%29%24%2F) |
| Türkçe (tr) | ■■■■■■■■・・ 89% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ftr+%2F%28TODO%7CDIRTY%29%24%2F) |
| Українська (uk) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fuk+%2F%28TODO%7CDIRTY%29%24%2F) |
diff --git a/app/i18n/cs/conf.php b/app/i18n/cs/conf.php
index 804bd1aa0..fe87b0c09 100644
--- a/app/i18n/cs/conf.php
+++ b/app/i18n/cs/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'The API access is disabled.', // TODO
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentation and list of known apps</a>', // TODO
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>', // TODO
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/de/conf.php b/app/i18n/de/conf.php
index 6a1c8bc3f..96a79240f 100644
--- a/app/i18n/de/conf.php
+++ b/app/i18n/de/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'Der API-Zugriff ist deaktiviert.',
'documentation_link' => 'Siehe die <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">Dokumentation und die Liste der bekannten Apps</a>',
'help' => 'Siehe <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>Dokumentation</a>',
+ 'security_warning' => 'Verwenden Sie HTTPS. Das API-Passwort wird im Klartext übertragen und kann in Server-Logs erscheinen, wenn es per GET gesendet wird.',
),
'change_password' => 'Passwort ändern',
'confirm_new_password' => 'Neues Passwort bestätigen',
diff --git a/app/i18n/el/conf.php b/app/i18n/el/conf.php
index 91dc702da..81423626f 100644
--- a/app/i18n/el/conf.php
+++ b/app/i18n/el/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'The API access is disabled.', // TODO
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentation and list of known apps</a>', // TODO
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>', // TODO
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/en-US/conf.php b/app/i18n/en-US/conf.php
index ba6ea3065..5fe670276 100644
--- a/app/i18n/en-US/conf.php
+++ b/app/i18n/en-US/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'The API access is disabled.', // IGNORE
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentation and list of known apps</a>', // IGNORE
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>', // IGNORE
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // IGNORE
),
'change_password' => 'Change password', // IGNORE
'confirm_new_password' => 'Confirm new password', // IGNORE
diff --git a/app/i18n/en/conf.php b/app/i18n/en/conf.php
index efa3a28c9..68f1422d2 100644
--- a/app/i18n/en/conf.php
+++ b/app/i18n/en/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'The API access is disabled.',
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentation and list of known apps</a>',
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.',
),
'change_password' => 'Change password',
'confirm_new_password' => 'Confirm new password',
diff --git a/app/i18n/es/conf.php b/app/i18n/es/conf.php
index 97373d79e..8d41c3c3f 100644
--- a/app/i18n/es/conf.php
+++ b/app/i18n/es/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'El acceso a la API está deshabilitado.',
'documentation_link' => 'Ver la <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentación y lista de aplicaciones conocidas</a>',
'help' => 'Ver <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentación</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Cambiar contraseña',
'confirm_new_password' => 'Confirmar nueva contraseña',
diff --git a/app/i18n/fa/conf.php b/app/i18n/fa/conf.php
index 541eebd58..1fd52a231 100644
--- a/app/i18n/fa/conf.php
+++ b/app/i18n/fa/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'غیرفعال',
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">مستندات و فهرست برنامه‌های شناخته‌شده</a>', // IGNORE
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>', // IGNORE
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'تغییر رمز عبور',
'confirm_new_password' => 'تأیید رمز عبور جدید',
diff --git a/app/i18n/fi/conf.php b/app/i18n/fi/conf.php
index 520b7eb1e..06d55e046 100644
--- a/app/i18n/fi/conf.php
+++ b/app/i18n/fi/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'API on poistettu käytöstä.',
'documentation_link' => 'Katso lisätietoja <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">ohjeesta ja tunnettujen sovellusten luettelosta</a>',
'help' => 'Katso <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>ohje</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Vaihda salasana',
'confirm_new_password' => 'Vahvista uusi salasana',
diff --git a/app/i18n/fr/conf.php b/app/i18n/fr/conf.php
index 27a31d9a5..e47c64256 100644
--- a/app/i18n/fr/conf.php
+++ b/app/i18n/fr/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'L’accès API est désactivé.',
'documentation_link' => 'Voir <a href="https://freshrss.github.io/FreshRSS/fr/users/06_Mobile_access.html" target="_blank">la documentation et une liste d’applications compatibles</a>',
'help' => 'Voir <a href="https://freshrss.github.io/FreshRSS/fr/users/06_Mobile_access.html" target=_blank>la documentation</a>',
+ 'security_warning' => 'Utilisez HTTPS. Le mot de passe API est transmis en clair et peut apparaître dans les journaux du serveur s’il est envoyé via GET.',
),
'change_password' => 'Changer le mot de passe',
'confirm_new_password' => 'Confirmer le mot de passe',
diff --git a/app/i18n/he/conf.php b/app/i18n/he/conf.php
index 1544e6f28..0db5a4df1 100644
--- a/app/i18n/he/conf.php
+++ b/app/i18n/he/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'The API access is disabled.', // TODO
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentation and list of known apps</a>', // TODO
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>', // TODO
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/hu/conf.php b/app/i18n/hu/conf.php
index d90597c20..e892acefd 100644
--- a/app/i18n/hu/conf.php
+++ b/app/i18n/hu/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'Az API hozzáférés ki van kapcsolva.',
'documentation_link' => 'Lásd az <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">ismert appok dokumentációját és listáját</a>',
'help' => 'Lásd a <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>dokumentációt</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Jelszó megváltoztatása',
'confirm_new_password' => 'Új jelszó megerősítése',
diff --git a/app/i18n/id/conf.php b/app/i18n/id/conf.php
index 3bdb55952..ecdb91e88 100644
--- a/app/i18n/id/conf.php
+++ b/app/i18n/id/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'Akses API dinonaktifkan.',
'documentation_link' => 'Lihat <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">dokumentasi dan daftar aplikasi yang diketahui</a>',
'help' => 'Lihat <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>dokumentasi</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/it/conf.php b/app/i18n/it/conf.php
index babfbb70b..9b071ed88 100644
--- a/app/i18n/it/conf.php
+++ b/app/i18n/it/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'L’accesso all’API è disabilitato.',
'documentation_link' => 'Vedi la <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentazione e l’elenco delle applicazioni</a>',
'help' => 'leggi la <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentazione</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Modifica password',
'confirm_new_password' => 'Conferma nuova password',
diff --git a/app/i18n/ja/conf.php b/app/i18n/ja/conf.php
index 4cfd8653b..9e5a9915f 100644
--- a/app/i18n/ja/conf.php
+++ b/app/i18n/ja/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'APIアクセスは無効です。',
'documentation_link' => '既知のアプリの一覧は<a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">ドキュメント</a>を参照してください',
'help' => '<a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>ドキュメント</a>を参照します',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/ko/conf.php b/app/i18n/ko/conf.php
index ff92acc04..a2dd1b4d7 100644
--- a/app/i18n/ko/conf.php
+++ b/app/i18n/ko/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'The API access is disabled.', // TODO
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentation and list of known apps</a>', // TODO
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>', // TODO
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/lv/conf.php b/app/i18n/lv/conf.php
index 465aebc5f..6d665bf74 100644
--- a/app/i18n/lv/conf.php
+++ b/app/i18n/lv/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'The API access is disabled.', // TODO
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentation and list of known apps</a>', // TODO
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>', // TODO
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/nl/conf.php b/app/i18n/nl/conf.php
index bbd026457..31550cce2 100644
--- a/app/i18n/nl/conf.php
+++ b/app/i18n/nl/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'De API-toegang is uitgeschakeld.',
'documentation_link' => 'Zie de <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentatie en lijst met bekende apps</a>',
'help' => 'Zie <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentatie</a>',
+ 'security_warning' => 'Gebruik HTTPS. Het API-wachtwoord wordt als tekst verzonden en kan in serverlogs terechtkomen als het via GET wordt verzonden.',
),
'change_password' => 'Wachtwoord wijzigen',
'confirm_new_password' => 'Nieuw wachtwoord bevestigen',
diff --git a/app/i18n/oc/conf.php b/app/i18n/oc/conf.php
index a99f59c21..18647e6de 100644
--- a/app/i18n/oc/conf.php
+++ b/app/i18n/oc/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'The API access is disabled.', // TODO
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentation and list of known apps</a>', // TODO
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>', // TODO
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/pl/conf.php b/app/i18n/pl/conf.php
index 577e0d57d..a898cab21 100644
--- a/app/i18n/pl/conf.php
+++ b/app/i18n/pl/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'Dostęp przez API jest wyłączony.',
'documentation_link' => 'Zobacz <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">dokumentację i listę aplikacji na telefon</a>',
'help' => 'Zobacz <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>dokumentację</a>',
+ 'security_warning' => 'Użyj HTTPS. Hasło API jest przesyłane jawnym tekstem i może pojawić się w dziennikach serwera, jeśli zostanie wysłane metodą GET.',
),
'change_password' => 'Zmień hasło',
'confirm_new_password' => 'Potwierdź nowe hasło',
diff --git a/app/i18n/pt-BR/conf.php b/app/i18n/pt-BR/conf.php
index d33f35f4f..b2c2b1299 100644
--- a/app/i18n/pt-BR/conf.php
+++ b/app/i18n/pt-BR/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'O acesso à API está desativado.',
'documentation_link' => 'Veja a <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentação e lista de aplicativos conhecidos</a>',
'help' => 'Veja a <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentação</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Alterar senha',
'confirm_new_password' => 'Confirmar nova senha',
diff --git a/app/i18n/pt-PT/conf.php b/app/i18n/pt-PT/conf.php
index 1109ef601..ce891fdc1 100644
--- a/app/i18n/pt-PT/conf.php
+++ b/app/i18n/pt-PT/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'The API access is disabled.', // TODO
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentation and list of known apps</a>', // TODO
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>', // TODO
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/ru/conf.php b/app/i18n/ru/conf.php
index 57c11be48..3e7fefabe 100644
--- a/app/i18n/ru/conf.php
+++ b/app/i18n/ru/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'Доступ к API отключен.',
'documentation_link' => 'См. <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">документацию и список известных приложений</a>',
'help' => 'См. <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">документацию</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Изменить пароль',
'confirm_new_password' => 'Подтвердить новый пароль',
diff --git a/app/i18n/sk/conf.php b/app/i18n/sk/conf.php
index 7bdbb100d..ca9a2b603 100644
--- a/app/i18n/sk/conf.php
+++ b/app/i18n/sk/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'The API access is disabled.', // TODO
'documentation_link' => 'See the <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">documentation and list of known apps</a>', // TODO
'help' => 'See <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>documentation</a>', // TODO
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/tr/conf.php b/app/i18n/tr/conf.php
index fa9a4fcfd..66c660ad3 100644
--- a/app/i18n/tr/conf.php
+++ b/app/i18n/tr/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'API erişimi devre dışı.',
'documentation_link' => '<a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">Belgeleri ve bilinen uygulamaların listesini</a> gör',
'help' => '<a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">Belgeleri</a> gör',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Change password', // TODO
'confirm_new_password' => 'Confirm new password', // TODO
diff --git a/app/i18n/uk/conf.php b/app/i18n/uk/conf.php
index 83467b382..dccf9bb49 100644
--- a/app/i18n/uk/conf.php
+++ b/app/i18n/uk/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'Доступ через API вимкнено.',
'documentation_link' => 'Перегляньте <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">документацію та перелік відомих програм</a>',
'help' => 'Перегляньте <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>документацію</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => 'Змінити пароль',
'confirm_new_password' => 'Підтвердьте новий пароль',
diff --git a/app/i18n/zh-CN/conf.php b/app/i18n/zh-CN/conf.php
index c26e78120..62a9ef0ea 100644
--- a/app/i18n/zh-CN/conf.php
+++ b/app/i18n/zh-CN/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'API 访问已禁用。',
'documentation_link' => '查看 <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">文档和已知应用列表</a>',
'help' => '查看 <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>文档</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => '修改密码',
'confirm_new_password' => '确认新密码',
diff --git a/app/i18n/zh-TW/conf.php b/app/i18n/zh-TW/conf.php
index c0a818991..833023b17 100644
--- a/app/i18n/zh-TW/conf.php
+++ b/app/i18n/zh-TW/conf.php
@@ -135,6 +135,7 @@ return array(
'disabled' => 'API 存取已停用',
'documentation_link' => '請參閱 <a href="https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target="_blank">說明文件與已知應用程式清單</a>',
'help' => '請參閱 <a href="http://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#access-via-mobile-app" target=_blank>說明文件</a>',
+ 'security_warning' => 'Use HTTPS. The API password is transmitted in clear text and may appear in server logs if sent via GET.', // TODO
),
'change_password' => '變更密碼',
'confirm_new_password' => '確認新密碼',
diff --git a/app/views/user/profile.phtml b/app/views/user/profile.phtml
index 9f89306bf..03dd58ba5 100644
--- a/app/views/user/profile.phtml
+++ b/app/views/user/profile.phtml
@@ -126,6 +126,7 @@
</div>
<p class="help"><?= _i('help') ?> <?= _t('conf.profile.api.check_link', Minz_Url::display('/api/', 'html', true)) ?></p>
<p class="help"><?= _i('help') ?> <?= _t('conf.profile.api.documentation_link') ?></p>
+ <p class="help"><?= _i('warning') ?> <?= _t('conf.profile.api.security_warning') ?></p>
</div>
</div>
diff --git a/docs/en/developers/06_GoogleReader_API.md b/docs/en/developers/06_GoogleReader_API.md
index ea1ec5ba6..4ffe9a24f 100644
--- a/docs/en/developers/06_GoogleReader_API.md
+++ b/docs/en/developers/06_GoogleReader_API.md
@@ -45,8 +45,8 @@ Then point your mobile application to the `greader.php` address (e.g. `https://f
Examples of basic queries:
```sh
-# Initial login, using API password (Email and Passwd can be given either as GET, or POST - better)
-curl 'https://freshrss.example.net/api/greader.php/accounts/ClientLogin?Email=alice&Passwd=Abcdef123456'
+# Initial login, using API password via POST
+curl -X POST -d 'Email=alice&Passwd=Abcdef123456' 'https://freshrss.example.net/api/greader.php/accounts/ClientLogin'
SID=alice/8e6845e089457af25303abc6f53356eb60bdb5f8
Auth=alice/8e6845e089457af25303abc6f53356eb60bdb5f8
diff --git a/docs/fr/users/06_Mobile_access.md b/docs/fr/users/06_Mobile_access.md
index 63f3de152..d653f8f88 100644
--- a/docs/fr/users/06_Mobile_access.md
+++ b/docs/fr/users/06_Mobile_access.md
@@ -76,8 +76,8 @@ possibilité.
Exemples de requêtes simples :
```sh
-# Authentification utilisant le mot de passe API (Email et Passwd peuvent être passés en GET, ou POST - mieux)
-curl 'https://freshrss.example.net/api/greader.php/accounts/ClientLogin?Email=alice&Passwd=Abcdef123456'
+# Authentification utilisant le mot de passe API via POST
+curl -X POST -d 'Email=alice&Passwd=Abcdef123456' 'https://freshrss.example.net/api/greader.php/accounts/ClientLogin'
SID=alice/8e6845e089457af25303abc6f53356eb60bdb5f8
Auth=alice/8e6845e089457af25303abc6f53356eb60bdb5f8
diff --git a/p/api/greader.php b/p/api/greader.php
index ab828cbeb..b2bc53c44 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -1129,8 +1129,17 @@ TXT;
self::$ORIGINAL_INPUT = file_get_contents('php://input', false, null, 0, 1048576) ?: '';
if ($pathInfos[1] === 'accounts') {
- if (($pathInfos[2] === 'ClientLogin') && is_string($_REQUEST['Email'] ?? null) && is_string($_REQUEST['Passwd'] ?? null)) {
- self::clientLogin($_REQUEST['Email'], $_REQUEST['Passwd']);
+ if ($pathInfos[2] === 'ClientLogin') {
+ $email = $_POST['Email'] ?? $_GET['Email'] ?? null;
+ $passwd = $_POST['Passwd'] ?? $_GET['Passwd'] ?? null;
+ if (is_string($email) && is_string($passwd)) {
+ if (isset($_GET['Email']) || isset($_GET['Passwd'])) {
+ $user_agent = is_string($_SERVER['HTTP_USER_AGENT'] ?? null) ? $_SERVER['HTTP_USER_AGENT'] : '';
+ $warning_message = 'ClientLogin using GET method is deprecated: password may appear in logs. Use POST instead. User-Agent: ' . $user_agent;
+ Minz_Log::warning($warning_message, API_LOG);
+ }
+ self::clientLogin($email, $passwd);
+ }
}
} elseif (isset($pathInfos[3], $pathInfos[4]) && $pathInfos[1] === 'reader' && $pathInfos[2] === 'api' && $pathInfos[3] === '0') {
if (Minz_User::name() === null) {