741 Commits

Author SHA1 Message Date
Thomas Hochstein
a32bcadd75 Release 2.3.3
Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-22 09:49:51 +01:00
Thomas Hochstein
25931b33c7 Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-22 09:45:21 +01:00
Thomas Hochstein
c9a7a44334 Fix typo.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-21 23:42:51 +01:00
Thomas Hochstein
d319b9677b Sort NEWS file.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-21 23:13:08 +01:00
Thomas Hochstein
1632a172f3 Set empty limit to "" in serendipity_fetchEntries.
If $limit is empty(), no limit is set, so we can
set the LIMIT statement to "" to achieve the same.

But an empty() $limit can be "0", so the
generated SQL statement could end with "0"
instead of the LIMIT statement. We catch this
with forcing an empty() $limit to "".

Fixes .
(No matter that this shouldn't even happen.)

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-21 18:08:40 +01:00
Thomas Hochstein
9709592b7c Escape version string in update notifier.
Fixes .

Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-20 19:11:23 +01:00
Thomas Hochstein
307f1c3dad Prevent renaming ML object into existing file.
When renaming objects in the Media Library,
s9y didn't check if a file with the same
name already exists, resulting in a file
name collision deleting both files from
the database _and_ from disk.

Add a check to avoid that.

An error message would be nice, too, but
that may be added later on.

Tested on s9y-stable test instance.

Cherry-picked from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-20 17:56:29 +01:00
surrim
67aea1b623 Fix serendipity_killPath().
Cherry-picked from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-20 16:53:37 +01:00
onli
d462580606 Fix trackback deletion from frontend, invalid referrer error
Was missing the token.

For context see https://board.s9y.org/viewtopic.php?f=10&t=24633

Cherry-picked from master branch.
2020-03-20 16:49:14 +01:00
Lothar Serra Mari
6accc81ad6 Don't allow requesting an archive page that doesn't exist
Cherry picked from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-20 16:46:50 +01:00
Stephan Brunker
3bf067c6ea functions_routing.php: set action to empty when serving JS
genpage is called but no action given -
the default page was generated at every call.

Cherry-picked from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-20 16:45:11 +01:00
onli
ac81762eaa Make use of the video tag for videos in the ML.
Cherry-picked from master branch.
2020-03-20 16:42:11 +01:00
onli
5934de7a4e Fix links in ML not going to item when no image.
Cherry-picked from master branch.
2020-03-20 16:29:48 +01:00
onli
89351eb77b Fix: Remember where you stored images last
Fixes .

Cherry-picked from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-20 16:26:26 +01:00
Garvin Hicking
a45c545ee3 [TASK] Uses single-asset insertion when only one asset has been selected to be inserted
See .

Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-20 16:23:43 +01:00
Thomas Hochstein
d319ad16f1 Add "lower/upper roman" ordered list styles.
Add NEWS entry, bump version number.

Fixes .

Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-20 16:23:26 +01:00
Thomas Hochstein
66494fdbe3 Force positive values for fetchLimits.
The number of entries shown on the title
page and in the feed has to be at least "1",
as s9y can't cope with "0" or negative
values (and it shouldn't).

May be related to .

Backported from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-20 16:23:05 +01:00
Garvin Hicking
4daa718362 [TASK] backport to 2.3 2019-12-03 15:52:05 +01:00
Garvin Hicking
a1677ff0eb [TASK] Backport to 2.3.3 2019-12-03 14:27:01 +01:00
Thomas Hochstein
d7b4e93292 After release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-16 09:49:27 +02:00
Thomas Hochstein
26c7f9af75 Release 2.3.2.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-16 09:43:59 +02:00
Thomas Hochstein
4b1641b5bf Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-16 09:39:47 +02:00
Thomas Hochstein
a2ad0bd9b5 Fix mangling of auto-generated mails.
s9y will encode the body of its auto-generated
mails as quoted-printable when imap_8bit() is
available. imap_8bit() will use "\r\n" as
linebreaks as mandated for SMTP transfer.
The result will be transmitted via PHP's
mail() function, using direct SMTP on
Windows and piping it to a MTA on Unix.

Most MTAs will cope just fine with those
linebreaks, while qmail will not; it will
replace all "\n" linebreaks with "\r\n",
so we get "\r\r\n" in our case. We can't
"fix" qmail (as its maintainer, if there
even is one, does not consider this
behaviour wrong), but we can replace the
line endings we get from imap_8bit().

The fix does work with qmail and Exim and
should work with sendmail and Postfix and
other MTAs, too. It may break sending
mail on Windows (i.e. lose all linebreaks),
but I think that's acceptable, as we'll
have more qmail installation than Windows
servers out there.

A workaround could be to set
serendipity['forceBase64']=true in
serendipity_config_local.inc.php, but I'd
prefer this fix.

Fixes .

Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:08:59 +02:00
onli
d36895b321 Document rotating images and figcaption fix.
Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:08:53 +02:00
Garvin Hicking
2b9616276f [TASK] Prevents PHP warnings with type differences on $_REQUEST['serendipity'].
refs 

Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:08:36 +02:00
Hanno
f26a306026 Escape category images to avoid backend XSS.
Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:08:28 +02:00
Garvin Hicking
63217ef9c9 [BUGFIX] [SECURITY] Fixes only logging to .log and.txt filetype extensions.
Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:07:58 +02:00
Garvin Hicking
ce191330c8 [CLEANUP] Changes release dates like before.
Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:07:55 +02:00
Garvin Hicking
b653ed867c [BUGFIX] Fixes {$save_error} not showing when saving plugin API configuration.
Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:07:43 +02:00
Eike Rathke
7ce5408609 With MySQL use cast(okey as unsigned) instead of cast(okey as integer)
The autologin ("Save information") functionality in 2.3.1 is broken since

    commit 52a41b37d554da11acc932eeec44c5fb1414a492
    CommitDate: Fri Mar 23 18:01:32 2018 +0100

	Rework autologin to use a token approach

Although a cookie serendipity[author_autologintoken] with correct
expiration (one month) which random data content is present as value
in the serendipity_options table with name autologin_Username and
correct timestamp as okey and that is found with manually executing
the SQL statement

  SELECT name, value, okey FROM serendipity_options WHERE name = 'autologin_Username' AND okey > 1565801743 LIMIT 1

like done in include/functions_config.inc.php
serendipity_checkAutologin(), the login is forgotten after 30 minutes
or so. That was not the case with 2.1.5 where the login was valid for
weeks.

Of

    if (stristr($serendipity['dbType'], 'sqlite')) {
        $cast = "okey";
    } else {
        // Adds explicits casting for mysql, postgresql and others.
        $cast = "cast(okey as integer)";
    }

from which $cast then is used in the SQL statement instead of a plain
okey; when doing that manually with

  SELECT name, value, okey FROM serendipity_options WHERE name = 'autologin_Username' AND cast(okey as integer) > 1565801743 LIMIT 1

it produces the MySQL error

   - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'integer) > 1565801743 LIMIT 1' at line 1

This also with $serendipity['dbType'] = 'mysqli' for the above code.

Indeed, cast(okey as integer) is invalid in MySQL and should be
cast(okey as unsigned) instead which then also works manually, see
https://stackoverflow.com/a/12127022 and
https://dev.mysql.com/doc/refman/5.7/en/cast-functions.html#function_cast

Same in serendipity_issueAutologin().

Changing those two places accordingly resolves the autologin not
persistent problem.

Additionally, inspecting the serendipity_options table revealed loads
of old serendipity[author_authorinformation] cookie information that
was never deleted in serendipity_issueAutologin() with the

  OR (okey LIKE 'l_%' AND $cast < " . (time() - 1814400) . ")")

expression producing a MySQL error. This has to be done manually
once as also 2.3.1 will not delete it anymore.

Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:06:50 +02:00
Thomas Hochstein
40113925b6 After release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-21 07:34:37 +02:00
Thomas Hochstein
a3a2b51848 Release 2.3.1
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-21 07:29:51 +02:00
Thomas Hochstein
f944eb4cd3 Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-21 07:25:34 +02:00
Thomas Hochstein
2e5e601ea2 Fix ML mass delete, enhance i18n.
* Fix media library (mass) delete.

* I18n for multimove.
  + Add MEDIA_DIRECTORY_MOVE.
  + Change German translation of "Move" to
    "Verschieben".

Cherry-picked from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-17 13:57:54 +02:00
Thomas Hochstein
4e662bf17c Fix pagination and links for "stable archives".
* Fix core pagination for "stable archives".

  The current page will always be the current page,
  regardless of archive sorting order. Page 76 of
  86 pages will remain page 76, even if the archive
  sorting is changed; it won't become page 10.

* Fix pagination for "stable archives" in themes.

  Timeline and Bulletproof have pagination.
  Both need to swap the prev/next links for
  stable archives, as the sorting order has
  been reversed.

* Fix prev/next page links for stable archives.

  We shouldn't swap prev/next links for archive
  pages. With stable archives, the title page is
  the last page of the archive, not the first, so
  all other pages are "previos", and we should
  display it like that.

Cherry-picked from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-17 01:02:38 +02:00
Thomas Hochstein
b88f789655 Add Spartacus links to plugin lists.
Quite some information is missing from
the list of installed plugins; and the
list of installable plugins has some
more information, but not everything
that is present on Spartacus, i.e.
the last modification date.

So let's add a link to the plugin entry
on Spartacus (in the chosen language
version).

Fixes .

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-17 00:58:32 +02:00
Thomas Hochstein
19fe3715bd Add changes to NEWS.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-11 13:46:34 +02:00
Thomas Hochstein
0240816507 2.3.x in the 2.3 branch is now our stable line.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-10 12:23:46 +02:00
Thomas Hochstein
4169484361 Release 2.3.0
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-10 12:11:27 +02:00
Thomas Hochstein
aed19e6be3 Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-10 12:08:32 +02:00
Thomas Hochstein
32f1a958bf Add data from 2.1.6 release.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-09 22:20:07 +02:00
onli
60e975ee27 Fix: Don't show "Array" string under update notification 2019-08-03 21:11:53 +02:00
Thomas Hochstein
e27e3e98c7 After release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-03 20:16:24 +02:00
Thomas Hochstein
2b3663b7f2 Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-03 19:56:12 +02:00
Thomas Hochstein
f418bcbd75 Prepare release: 2.3-rc1.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-03 19:41:11 +02:00
Thomas Hochstein
b90448a71d Update news.
623b2f8879f81 and ba6ccb3dbb9a8 added.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-03 19:38:38 +02:00
onli
6cab32aa5a document spamblock change , bump version 2019-07-29 17:29:16 +02:00
Thomas Hochstein
5e36b3d56f Update NEWS and RELEASE (2.1.5).
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-05-01 19:49:37 +02:00
Thomas Hochstein
e19222597b After release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 19:44:42 +02:00
Thomas Hochstein
ff2e85e14d Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 19:13:57 +02:00