]> git.joonet.de Git - adminer.git/commitdiff
Improve CSRF message
authorJakub Vrana <jakub@vrana.cz>
Tue, 28 Oct 2014 16:24:13 +0000 (09:24 -0700)
committerJakub Vrana <jakub@vrana.cz>
Tue, 28 Oct 2014 16:24:13 +0000 (09:24 -0700)
adminer/include/auth.inc.php
adminer/lang/cs.inc.php

index 138bdf17a9440fb8a642c20f0b5c4ac7993f2925..28fed00629c303b1cc6b0932eebe495e05487f9f 100644 (file)
@@ -186,7 +186,7 @@ if ($_POST) {
                }
                $error = (!$_POST["token"] && $max_vars
                        ? lang('Maximum number of allowed fields exceeded. Please increase %s.', "'$ini'")
-                       : lang('Invalid CSRF token. Send the form again.')
+                       : lang('Invalid CSRF token. Send the form again.') . ' ' . lang('If you did not send this request from Adminer then close this page.')
                );
        }
        
index c2d6a192d96a93b533c411160378a0d89bb8fe85..bb27bb58f9dc029913425154c4685f4144b8843a 100644 (file)
@@ -15,6 +15,7 @@ $translations = array(
        'Master password expired. <a href="http://www.adminer.org/en/extension/" target="_blank">Implement</a> %s method to make it permanent.' => 'Platnost hlavního hesla vypršela. <a href="http://www.adminer.org/cs/extension/" target="_blank">Implementujte</a> metodu %s, aby platilo stále.',
        'Language' => 'Jazyk',
        'Invalid CSRF token. Send the form again.' => 'Neplatný token CSRF. Odešlete formulář znovu.',
+       'If you did not send this request from Adminer then close this page.' => 'Pokud jste tento požadavek neposlali z Adminera, tak tuto stránku zavřete.',
        'No extension' => 'Žádné rozšíření',
        'None of the supported PHP extensions (%s) are available.' => 'Není dostupné žádné z podporovaných PHP rozšíření (%s).',
        'Session support must be enabled.' => 'Session proměnné musí být povolené.',