]> git.mjollnir.org Git - s9y.git/commitdiff
Try to do some XSRF detection based on HTTP-Referrers.
authorgarvinhicking <garvinhicking>
Mon, 26 Sep 2005 15:57:03 +0000 (15:57 +0000)
committergarvinhicking <garvinhicking>
Mon, 26 Sep 2005 15:57:03 +0000 (15:57 +0000)
NEEDS TESTING before it can be safely backported.

56 files changed:
docs/NEWS
include/functions_config.inc.php
lang/UTF-8/serendipity_lang_bg.inc.php
lang/UTF-8/serendipity_lang_cn.inc.php
lang/UTF-8/serendipity_lang_cs.inc.php
lang/UTF-8/serendipity_lang_cz.inc.php
lang/UTF-8/serendipity_lang_da.inc.php
lang/UTF-8/serendipity_lang_de.inc.php
lang/UTF-8/serendipity_lang_en.inc.php
lang/UTF-8/serendipity_lang_es.inc.php
lang/UTF-8/serendipity_lang_fa.inc.php
lang/UTF-8/serendipity_lang_fi.inc.php
lang/UTF-8/serendipity_lang_fr.inc.php
lang/UTF-8/serendipity_lang_hu.inc.php
lang/UTF-8/serendipity_lang_is.inc.php
lang/UTF-8/serendipity_lang_it.inc.php
lang/UTF-8/serendipity_lang_ja.inc.php
lang/UTF-8/serendipity_lang_ko.inc.php
lang/UTF-8/serendipity_lang_nl.inc.php
lang/UTF-8/serendipity_lang_no.inc.php
lang/UTF-8/serendipity_lang_pt.inc.php
lang/UTF-8/serendipity_lang_pt_PT.inc.php
lang/UTF-8/serendipity_lang_ro.inc.php
lang/UTF-8/serendipity_lang_ru.inc.php
lang/UTF-8/serendipity_lang_se.inc.php
lang/UTF-8/serendipity_lang_tn.inc.php
lang/UTF-8/serendipity_lang_tw.inc.php
lang/UTF-8/serendipity_lang_zh.inc.php
lang/addlang.txt
lang/serendipity_lang_bg.inc.php
lang/serendipity_lang_cn.inc.php
lang/serendipity_lang_cs.inc.php
lang/serendipity_lang_cz.inc.php
lang/serendipity_lang_da.inc.php
lang/serendipity_lang_de.inc.php
lang/serendipity_lang_en.inc.php
lang/serendipity_lang_es.inc.php
lang/serendipity_lang_fa.inc.php
lang/serendipity_lang_fi.inc.php
lang/serendipity_lang_fr.inc.php
lang/serendipity_lang_hu.inc.php
lang/serendipity_lang_is.inc.php
lang/serendipity_lang_it.inc.php
lang/serendipity_lang_ja.inc.php
lang/serendipity_lang_ko.inc.php
lang/serendipity_lang_nl.inc.php
lang/serendipity_lang_no.inc.php
lang/serendipity_lang_pt.inc.php
lang/serendipity_lang_pt_PT.inc.php
lang/serendipity_lang_ro.inc.php
lang/serendipity_lang_ru.inc.php
lang/serendipity_lang_se.inc.php
lang/serendipity_lang_tn.inc.php
lang/serendipity_lang_tw.inc.php
lang/serendipity_lang_zh.inc.php
serendipity_admin.php

index 7cceab5e4bde31b76d8a741e9842adba6682011e..d92d4792aa4afb9916c50c1f628815ddfdc68fda 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,8 @@
 Version 0.9 ()
 ------------------------------------------------------------------------
 
+    * Try to detect XSRF based on HTTP-Referrer. (garvinhicking)
+
     * Fix not showing thumbnail images in media database when thumbSuffix
       is empty. Thanks to Brian J. France!
 
@@ -26,7 +28,7 @@ Version 0.9 ()
       (garvinhicking)
 
     * Inserting links via the Serendipity Toolbar over the entry area
-      now also asks for a link tooltipe/title.
+      now also asks for a link tooltip/title.
 
     * Plugin API no longer queries the filename of a plugin if it is internal
       (increases performance because of less SQL queries) (garvinhicking)
index 8de289d01f88f009d9712063e6ce6ef94d4db8bf..1782168116d55c8127409d3703ef7fff83678ac9 100644 (file)
@@ -1099,4 +1099,53 @@ function serendipity_ACL_SQL(&$cond, $append_category = false) {
     return false;
 }
 
+function serendipity_checkXSRF() {
+    global $serendipity;
+
+    // If no module was requested, the user has just logged in and no action will be performed.
+    if (empty($serendipity['GET']['adminModule'])) {
+        return false;
+    }
+
+    // The referrer was empty. Deny access.
+    if (empty($_SERVER['HTTP_REFERER'])) {
+        echo serendipity_reportXSRF(1);
+        return false;
+    }
+    
+    // Parse the Referrer host. Abort if not parseable.
+    $hostinfo = @parse_url($_SERVER['HTTP_REFERER']);
+    if (!is_array($hostinfo)) {
+        echo serendipity_reportXSRF(2);
+        return true;
+    }
+
+    // Get the server against we will perform the XSRF check.
+    $server = '';
+    if (empty($_SERVER['HTTP_HOST'])) {
+        $myhost = @parse_url($serendipity['baseURL']);
+        if (is_array($myhost)) {
+            $server = $myhost['host'];
+        }
+    } else {
+        $server = $_SERVER['HTTP_HOST'];
+    }
+
+    // If the current server is different than the referred server, deny access.
+    if ($hostinfo['host'] != $server) {
+        echo serendipity_reportXSRF(3);
+        return true;
+    }
+    
+    return false;
+}
+
+function serendipity_reportXSRF($type = 0) {
+    global $serendipity;
+
+    $string = '<div class="serendipityAdminMsgError XSRF_' . $type . '">' . ERROR_XSRF . '</div>';
+    $serendipity['GET']['adminModule'] = '';
+    return $string;
+}
+
 /* vim: set sts=4 ts=4 expandtab : */
index fb8351ea719b809a0ff1d4965ead97a5d43bfaec..f68cbe4a27101da0f4357ac777535a29463230a8 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_bg.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_bg.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) 2004 Bogomil Shopov <bogomil@spisanie.com>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index e7f85b098c3d22f07a227060f0bb296d64b79c03..85fa12c18cfe7684c0454d51c407f6f9e7a7165a 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_cn.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_cn.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index dbfbeaf39af9a6eb22748e0fbbbf8c7d7f9997c1..189bd4d8522c2c54ae624b7eae202b433a3632e6 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_cs.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_cs.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) 2005 Josef Klimosz <ok2wo@centrum.cz>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 5fcc082ac644a134a5edbf229336f850f1d2fd67..1f700b11b982e23439234626037ebed290fd800f 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_cz.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_cz.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) 2004 Josef Klimosz <ok2wo@centrum.cz>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index e10966f3816259198a4b16df4d99532625971535..397fe510c78e5acdd8727720bf6d2171ec19a7a9 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_da.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_da.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Tom Sommer, <ts@dreamcoder.dk>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 7867e13edf7dda93904ff73b5dabb464d2fa115a..798edacc13d999ba342cc8fbb98b21d0678aa03e 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_de.inc.php 483 2005-09-21 10:50:17Z garvinhicking $
+<?php # $Id: serendipity_lang_de.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) Jannis Hermanns, Garvin Hicking and others
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index ed9ef77bdb083de03b381c126fbb359720b31fdd..cce767ae29a4d25fe231a54e16b522441ad8eff5 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_en.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_en.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 7465c48b5d81666ec6816a4eb48b3591b7c79cfb..d734b7a00b59dfdad1d2cd0f2dd32f03c9856582 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_es.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_es.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Luis Cervantes <LuisCervantes@ono.com>,
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index b0d2e64dba005727fbf28f946d9706c33879e6da..7600b11c0e2e5f38807dcc2b5b9293a119dde3bb 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_fa.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_fa.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved. See LICENSE file for licensing details
 # this translation, translated by Omid Mottaghi <http://oxygenws.com>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 5bb9b6f6cddf6e937348835fd48abd10d56c402c..1fc4bc5bf78efc9dbded8a1940e5b111f93b05f1 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_fi.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_fi.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 60474c854d0ce1c72e4848d13c12cb0cb3823f76..8e4fc35ca81c8b6ccd7db2e6daf951d8a1de7a9d 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_fr.inc.php 480 2005-09-19 16:45:05Z garvinhicking $
+<?php # $Id: serendipity_lang_fr.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation by Sebastian Mordziol <argh@php-tools.net>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 3a57fbc8ba19ae7d247a8d8ba6c4614a5d701f0b..0eb97a1f93a4631744a03b2e2781e1b5c6d9f5e5 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index fc92cfec9acce34442ed2ed1fda9e77fbdefc786..f20ca9305a13171819924b4c92dfc7963c04e851 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_is.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_is.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 2fe7d8e66184cdad9c66bab6e5bbedd9bd5c59d2..604db77fcf9361dea40ad3ee8f07fc3f99a753f6 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_it.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_it.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Alessandro Pellizzari <alex@amiran.it>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 9c72f6c346a5b1e4579d4ee5241e4c18609fc585..ab93cb06964508fe6858c1c8617592c607e51dc6 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_ja.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_ja.inc.php 492 2005-09-26 10:02:04Z elf2000 $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) Tadashi Jokagi <elf2000@users.sourceforge.net>, 2004-2005.
 @define('YES', 'はい');
 @define('NO', 'いいえ');
 @define('USE_DEFAULT', 'デフォルト');
-@define('CHECK_N_SAVE', 'チェックと保存');
+@define('CHECK_N_SAVE', '確認と保存をする');
 @define('DIRECTORY_WRITE_ERROR', 'ディレクトリ %s の書き込みができませんでした。パーミッションを調べてください');
 @define('DIRECTORY_CREATE_ERROR', 'ディレクトリ %s が存在しないか作成することができませんでした。手動でディレクトリを作成してください。');
 @define('DIRECTORY_RUN_CMD', '&nbsp;-&gt; 実行 <i>%s %s</i>');
 @define('DATABASE_ERROR', 'serendipity エラー: データベースに接続できませんでした - 終了します。');
 @define('CREATE_DATABASE', 'デフォルトデータベースセットアップの作成中...');
 @define('ATTEMPT_WRITE_FILE', 'ファイル %s の書き込みを試みます...');
-@define('WRITTEN_N_SAVED', '設定の書き込みと保存');
+@define('WRITTEN_N_SAVED', '設定の書き込みと保存をしました。');
 @define('IMAGE_ALIGNMENT', '画像位置あわせ');
 @define('ENTER_NEW_NAME', '新規名称の入力: ');
 @define('RESIZING', 'リサイズ中');
@@ -770,20 +770,20 @@ Serendipity のアップグレードステージを無視しました。正し
 @define('CATEGORIES_HIDE_PARALLEL', 'カテゴリツリーの一部ではないカテゴリを隠す');
 @define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
 @define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: 他ユーザーのメディアファイルの閲覧');
-@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
 @define('CHARSET_NATIVE', 'ネイティブ');
 @define('INSTALL_CHARSET', '文字コード選択');
 @define('INSTALL_CHARSET_DESC', 'Here you can toggle UTF-8 or native (ISO, EUC, ...) charactersets. Some languages only have UTF-8 translations so that setting the charset to "Native" will have no effects. UTF-8 is suggested for new installations. Do not change this setting if you have already made entries with special characters - this may lead to corrupt characters. Be sure to read more on http://www.s9y.org/index.php?node=46 about this issue.');
 @define('CALENDAR_ENABLE_EXTERNAL_EVENTS', 'プラグインの API フックを有効にする');
 @define('CALENDAR_EXTEVENT_DESC', 'If enabled, plugins can hook into the calendar to display their own events highlighted. Only enable if you have installed plugins that need this, otherwise it just decreases performance.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
-@define('PERM_READ', 'Read permission');
-@define('PERM_WRITE', 'Write permission');
+@define('PERM_READ', '読み込み権限');
+@define('PERM_WRITE', '書き込み権限');
 
-@define('PERM_DENIED', 'Permission denied.');
-@define('INSTALL_ACL', 'Apply read-permissions for categories');
+@define('PERM_DENIED', 'アクセス拒否です。');
+@define('INSTALL_ACL', 'カテゴリの読み込み権限を適用する');
 @define('INSTALL_ACL_DESC', 'If enabled, the usergroup permission settings you setup for categories will be applied when logged-in users view your blog. If disabled, the read-permissions of the categories are NOT applied, but the positive effect is a little speedup on your blog. So if you don\'t need multi-user read permissions for your blog, disable this setting.');
 @define('PLUGIN_API_VALIDATE_ERROR', 'Configuration syntax wrong for option "%s". Needs content of type "%s".');
-@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD', '古いパスワード');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 4d0595cd93553dd0d0021857e982c4aaaa11857a..2fb943a60122dddda3b1aa4c5c12721ec56fd138 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_ko.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_ko.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translated by: Wesley Hwang-Chung <wesley96@gmail.com> 
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index d742f1905f5140d29f54d93d15216213dc9e50a0..bb9c21ba9f3065b82722ee00f5d195115d5a6475 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_nl.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_nl.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Christiaan Heerze <webmaster@heimp.nl>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 04d29cbe1cfb23ead96abb0c2eb90c1014c3063e..51b140102f57618b7e1936767fb389c7fcdd2370 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_no.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_no.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Jo Christian Oterhals <oterhals@gmail.com>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index db56c1aebd24f69cfc71cb15e8dc3088db26ee20..a6e129f41961d8a65b625a75e190982c3d8457c2 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_pt.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_pt.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translation (c) by Agner Olson <agner@agner.net> 
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 599047ec8e6163d1e94dcf8791e4142fabd8e696..e954902dc53e350f9f550ae4cd2f66242557122d 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 476372125294a0bb472e7a4471c05b714f1552db..edfa39df6d13e328593be4aa2a3732fbaca4baa2 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index e6cda5a9fd6c01e76fc83bdd528d7d9c17f80c31..7c1ea7b3ec8a1624e8c63003d7c8337f186d810c 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_ru.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_ru.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
@@ -785,3 +785,4 @@ $i18n_filename_to   = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index a200ce5ce13509aab0bc16d9d97f54bb9115c5f3..e4a883755619ac2c25a6db00f3deda91feba0947 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index eef0d1dfbe6c101aa7703f840c86ece45e56b824..498471fb4360a10ef9e1cc82dccb90d3eea3867a 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_tn.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_tn.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translated by CapriSkye <admin@capriskye.com>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index d947debe642dd6312b336c2fb5e9d62adabbb2fc..7c4232620c5b9e74b18c2954ffaf17cce343b7e0 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_tw.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_tw.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 # Translated by CapriSkye <admin@capriskye.com>
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 75b2e169522ffa7a9781cc74c57ac18c88fe6ae6..87cbebb03610649a792c7731372aba46e3bc6af4 100644 (file)
@@ -1,4 +1,4 @@
-<?php # $Id: serendipity_lang_zh.inc.php 460 2005-09-12 09:59:24Z garvinhicking $
+<?php # $Id: serendipity_lang_zh.inc.php 489 2005-09-26 07:55:11Z garvinhicking $
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 /* vim: set sts=4 ts=4 expandtab : */
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 7b3bd7842408a21f9ff05f218b3b69241a9253a9..a651ec09c7445b6a512c89274767af59661ba804 100644 (file)
@@ -1 +1 @@
-@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 581b9e643309105ef2cff5a0b0ee5d6272fa25ce..7e59016d4be03c19971ada9f2490e013cfbbc749 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 5393e9d2021f902796d921d495bf00493d470446..052ca1ab614f4efecdaee7f932ab42475f6820eb 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 68104db8ac731cff67fe7ecd87ccb42b099094ee..af928785bd8e99b06fcb08e19f08e507ab3f6530 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 17011ae7f1b457497860e8668091555b3f1788ab..9f6b619136ae1cc043bb19364cc2eb94896010cc 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 3e6455d34553507918dace041a397084fe13704d..e6d21e359e3a55021067663d4442f73511d35e9b 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 72c98523d3f704fa95d2b53c39e1658e2d70dbd3..63ab23bbea182a0b8c4d7d550a614568601b2493 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 1f5ffd1b60444fd231cadb6ff138b148dea2cb1e..762790f324df4c6dfdd498d7f98b32bbc5f76bbd 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index e291106a4a7f3db9485694b1779f0aa50a3a2157..5688872571e10e721e259ec88b1f9f1c5c76fc59 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index df9007e773b489ee338b8c3dbed16766518598ef..1d2c5595a3451b65e37f912bd724760d56766612 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 81d4fce6d46fc5c411e99d8e1e24ae65bc4be5a1..3bd9d8c465585c65ca5038c1007b5b09bba0952d 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 30ee1e9da763926859c055bb21dfba7b77018a7a..3bfdf9c4e88d733c03abf29b442188f34b619659 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 8e9b79e9d9ae39fb5a3c95f2c3d9976eae9fcf55..e7c72baa6b3395a73ec7ddc9105b079ab71ed648 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index f45e5c5411fae2234ac0150d53656e108bdf9e00..e639fa979984d439a15b9b821c41958227a4c447 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 7ca0b49e2bae843a22cf40a5a02b94920b3ab59d..d72ad2ab2c603a74371cbca16495bebfd5efdeb9 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 26747b21773ed7987104efe71b073e335f4c7269..435ff4ad24053aa8b5619c3ec4597b85d411d356 100644 (file)
@@ -786,3 +786,4 @@ Serendipity のアップグレードステージを無視しました。正し
 @define('USERCONF_CHECK_PASSWORD', '古いパスワード');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 1a469f9a521334eb5be8cbf5f5e499c5f0f84155..5ca3f1b3d99a26049417454723341ec73756ea03 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index d65217eba8f0e17623edf6a1df2d8255ef4b2731..5375a5cac3d663aeca7a5e293abb4fecacec7134 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 3049010f6a745a131fd913f271ab855d0c9ffe65..65d6ae799830c9da72af93ab6b598ce3b64e49a3 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 76bef7527d47c5b74d433a08f1cc9c0a04bf37a2..518d0db7736bf6bafbdd2066e9592daa171b24c8 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 18f7384d9b3e6c94b67da439e91d8bf12383a85c..b39afdc26124933ea9adec7efb377c296ce6cd80 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 476372125294a0bb472e7a4471c05b714f1552db..edfa39df6d13e328593be4aa2a3732fbaca4baa2 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 588ccc331374973bbfe5eb705b69316815fbc363..34f4ac796a74b5bab31cc15db322ae7d2c31e8fc 100644 (file)
@@ -785,3 +785,4 @@ $i18n_filename_to   = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index fc99e8837836c3c6a43ffdde5f2b1823091ef6a7..4abe388a952e74e6724430fb4644c48192b75a02 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index bb3b49e0ee27ef8fa26147ed02012f9fc3fb9cfd..a10cfdcc6845412f4ed95d996270d1375c093537 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 3929f8c9f80fb47231c6c73e3cea9d3aeaef23ed..306671fb269d4d42f6892dbd6e62c5f25e14cc70 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 940dd6c3efe42556aabfe1de2f40b02401072254..56e36e3747abf194762909c2f4a07c6ad03584c8 100644 (file)
 @define('USERCONF_CHECK_PASSWORD', 'Old Password');
 @define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
 @define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
+@define('ERROR_XSRF', 'Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.');
index 864256889b383bd304a1ad06507aed202974a5ed..20b585f866261cf2259acc84600a9582bb1d78db 100644 (file)
@@ -226,6 +226,8 @@ if (!isset($serendipity['serendipityPath']) || IS_installed === false || IS_up2d
     if (!isset($serendipity['GET']['adminModule'])) {
         $serendipity['GET']['adminModule'] = (isset($serendipity['POST']['adminModule']) ? $serendipity['POST']['adminModule'] : '');
     }
+    
+    serendipity_checkXSRF();
 
     switch($serendipity['GET']['adminModule']) {
         case 'installer':