This commit is contained in:
Garvin Hicking 2017-01-30 14:58:37 +01:00
parent d4d46855c2
commit c2cebad52b
2 changed files with 9 additions and 1 deletions

View File

@ -11,7 +11,7 @@ header('Content-Type: text/html; charset=' . LANG_CHARSET);
if (isset($serendipity['GET']['delete'], $serendipity['GET']['entry'], $serendipity['GET']['type']) && serendipity_checkFormToken()) {
serendipity_deleteComment($serendipity['GET']['delete'], $serendipity['GET']['entry'], $serendipity['GET']['type']);
if (serendipity_isResponseClean($_SERVER['HTTP_REFERER']) && preg_match('@^https?://' . preg_quote($_SERVER['HTTP_HOST'], '@') . '@imsU')) {
if (serendipity_isResponseClean($_SERVER['HTTP_REFERER']) && preg_match('@^https?://' . preg_quote($_SERVER['HTTP_HOST'], '@') . '@imsU', $_SERVER['HTTP_REFERER'])) {
header('Status: 302 Found');
header('Location: '. $_SERVER['HTTP_REFERER']);
exit;

View File

@ -1,3 +1,11 @@
Version 2.1-rc2 | final ()
------------------------------------------------------------------------
* Fix missing token when updating plugin
* Fix missing variable name in regular expression match, Issue #442
Version 2.1-rc1 (January, 26th 2017)
------------------------------------------------------------------------