67 Commits

Author SHA1 Message Date
4785f07f12
Always assume UTF-8. 2022-02-20 17:14:54 +01:00
25b8dbcb42
Implement serendipity_mb_ucfirst() as that's not available. 2022-02-20 01:58:00 +01:00
f4bd9bc07a
Always use native mb_* functions. 2022-02-20 01:56:52 +01:00
8ebf5e6865
Spacing. 2022-02-14 02:48:15 +01:00
fc78f871ed
Replace microtime_float() by microtime(true). 2022-02-13 23:02:08 +01:00
50c89e2bad
Moved caching methods out of functions.inc.php into ContentCache class. 2022-02-13 16:15:48 +01:00
onli
cbca20a535 php 8 compat fixes for commenting in frontend 2021-05-13 15:03:23 +02:00
onli
3d1c264ccd PHP8 compat fixes for themes menu 2021-05-06 20:45:19 +02:00
onli
7900062aa3 PHP8 compat fixes for entry form display 2021-05-06 20:45:19 +02:00
Hanno Böck
931e621549 Replace token generation with hash and uniqid with secure random numbers from random_bytes 2021-02-03 17:44:12 +01:00
Stephan Brunker
cb4530f83c functions.inc.php: fix SQL syntax error (postgreSQL), issue #743 2020-08-24 09:24:26 +02:00
Stephan Brunker
ac6c2d5269 serendipity_fetchUsers: fix SQL syntax error (WHERE statement twice) 2020-06-04 23:40:56 +02:00
Stephan Brunker
d75e311077 added event_hook multilingual_strip_langs to permalinks 2019-11-02 14:20:18 +01:00
Thomas Hochstein
9867d70fac 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 #644.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 13:15:27 +02:00
onli
92a1106405 Set distinct cache directory for voku/simple-cache (#597) 2019-03-18 21:37:56 +01:00
onli
cd0adf5550 Set templates_c as opcache destination for voku/simple-cache 2019-03-04 11:07:32 +01:00
onli
4c4545428d Fix internal cache, init proper functions API 2019-02-16 13:07:53 +01:00
klemens
5a95db314a spelling fixes 2017-04-06 22:26:07 +02:00
Garvin Hicking
a48708021c * [Security] Reject %0D/%0A in exit tracking and other places
(Issue #434)
2017-01-03 09:21:25 +01:00
Garvin Hicking
06e33c5421 Merge branch 'master' of github.com:s9y/Serendipity 2016-09-25 15:30:10 +02:00
Garvin Hicking
4aaa9845eb Add header API 2016-09-22 15:38:12 +02:00
Garvin Hicking
d60a7da9c3 support http auth 2016-09-22 15:34:27 +02:00
Garvin Hicking
20ade83792 allow arrays 2016-09-22 14:33:52 +02:00
Garvin Hicking
80f3b39502 forward compatibility to serendipity_request_url 2016-09-22 14:26:59 +02:00
Garvin Hicking
cfd75ec877 Security patch, see docs/NEWS 2016-09-22 12:51:00 +02:00
Garvin Hicking
c1e4f4c533 Add serendipity_request_url() 2016-09-22 12:35:48 +02:00
Ian
69f8eae646 some cleanups found on the way 2016-02-04 15:26:38 +01:00
Eike Rathke
6aae658e7f additional space in TopExits/Referrers for better word-wrap
There was no space between total value and next host, so display,
depending on available width, was

www.example1.com (12)www.example2.com
(23)www.example3.com (34)

With an additional trailing space after total it is

www.example1.com (12)
www.example2.com (23)
www.example3.com (34)
2015-11-01 22:56:01 +01:00
Ian
80716280a8 minors 2015-09-05 12:40:44 +02:00
Garvin Hicking
a99156a21d * Issue #248: Add $serendipity['forceBase64']=true option (can be set
in serendipity_config_local.inc.php) to make Serendipity *not*
      use 8bit Imap functions for sending mail, for MTAs that behave
      erradically otherwise.

References #248
2015-01-27 14:45:06 +01:00
garvinhicking
c3d060c973 Move logger init to seperate funtion so that its PHP 5.3+ syntax does
not fatally break the serendipity_config.inc.php parsing on PHP5 5.3-.
Also create a reasonable error message when running on an old version.
2014-12-15 10:13:10 +01:00
Ian
8da4c647a8 cleanup tabs and whites 2014-11-24 14:17:38 +01:00
onli
92afc37753 Introduce serendipity_specialchars-wrapper for encoding bug (#236)
PHP 5.4 sets UTF-8 as the default for htmlspecialchars, htmlentities and html_entity_decode. The first two will echo an empty string when given a string with umlauts. This commits introduces serendipity_specialchar-wrapper that are meant to be a temporary solution for the s9y-core until PHP 5.6 fixed the bug, so the native charset option of s9y continues to work.
2014-11-23 23:41:08 +01:00
Matthias Gutjahr
becf99ad1f Fixes bug in serendipity_serverOffsetHour (cp. http://board.s9y.org/viewtopic.php?f=3&t=19963) and adds test case 2014-06-05 16:41:56 +02:00
Garvin Hicking
1b37e41e00 Issue #165 - allow to set configuration of children to their parents config, but on their own names.
Global options (navigation) are even carried through so that they use the central part.
This falls back in place rather nicely, I hope it REALLY works. My first tests showed no issues.
2014-05-28 11:48:56 +02:00
Ian
b4f015e4c0 add custom config to info array - fixes #165 3a and half of 3b 2014-05-20 20:13:22 +02:00
Garvin Hicking
dd83225447 This is my proposal on implementing the ability to switch frontend and backend templates independently.
- This introduces a new option "template_backend" that will be set to indicate the backend template, defaults to 2k11.
- The "Engine: xxx" line in info.txt still works, but only for the frontend
- The frontend fallback chain defaults to the old "default" template to ensure that themes will work that have "old-style" HTML output
- The backend fallback chain only falls back to 2k11 and then "default"
- In the future, we will remove templates/default/admin once the mechanism is proven stable

To test this in all cases you can:

- Copy 2k11/ to 2k11-custom, edit info.txt, give it a distinct name. Edit the admin/index.tpl file to add some code to ensure that you will see that template in the backend if you pick it, or adjust the style.css or whatever.
- Copy idea/ to idea-custom, edit info.txt, add a "Engine: 2k11" line. Now you can test how a template would look like that fallsback on 2k11 instead of "default"

Those permutations can be checked and come to my mind:

- Backend: 2k11, Frontend: 2k11
- Backend: 2k11-custom, Frontend: 2k11
- Backend: 2k11, Frontend: 2k11-custom

- Backend: 2k11, Frontend: idea
- Backend: 2k11, Frontend: idea-custom

- Backend: 2k11-custom, Frontend: idea
- Backend: 2k11-custom, Frontend: idea-custom

They seem to work.

Currently the display of backend and frontend theme in templates.inc.tpl takes up some larger space. Maybe it could be prettified somehow, maybe put frontend and backend template next to each other, not beneath each other? Maybe @yellowled has some suggestions.

@onli and @ophian - please have a look at this, since you both also worked on the fallback chains. Please tell me if you have issues with this. We can easily revert, if you see this approach as not workable. This is more a "proof of concept" draft.
2014-05-14 12:58:06 +02:00
onli
d80a8334c8 Use return instead of echo in the remaining core
Debug-messages still may use echo, and some functions in functions_image and trackback still use it to generate progress messages, which should get cleaned up as well but is not that urgent
2013-07-05 19:16:11 +02:00
onli
cbe07715fd use include_once 2013-06-21 18:11:03 +02:00
Garvin Hicking
5ec7481030 Port of patch #16 to 2.0 2013-05-06 09:47:19 +02:00
Matthias Mees
7288ffdef8 Fixed most of the redundant br elements in the core. 2012-12-03 13:35:59 +01:00
Garvin Hicking
ee580791bf proper IS NULL 2010-08-24 09:45:46 +00:00
Garvin Hicking
ed9bc8d88c apply also to trackurl 2010-03-30 11:24:12 +00:00
Garvin Hicking
9aff2df847 truncate to 255 2010-03-30 10:47:15 +00:00
Garvin Hicking
958c4c87ea * Experimental: When sending quoted-printable notification mails,
auto-split after 75 characters.
      (Ref: http://board.s9y.org/viewtopic.php?f=3&t=16314)
2010-01-27 15:04:17 +00:00
Garvin Hicking
7d097ab317 Add RFC auto-submitted header
(http://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-keywords.xhtml)
(http://board.s9y.org/posting.php?mode=quote&f=3&p=93402)
2010-01-27 13:33:34 +00:00
Garvin Hicking
316e86f3dc * Added ability to mark authorgroups as "hidden", so that members of such groups are excluded from common author listings. (Ref http://board.s9y.org/viewtopic.php?f=11&t=16237) (garvinhicking) 2010-01-13 12:28:55 +00:00
Garvin Hicking
5630afb7c1 * Do not send mails, if the "To:" address is empty, might happen
if authors do not have a mail account entered in their profile.
      (nealk)
2009-09-21 08:11:35 +00:00
Garvin Hicking
47aa8c2f72 ereg() replacement 2009-09-04 08:51:16 +00:00
Garvin Hicking
f541e5874d New experimental login hashing 2009-02-16 11:29:49 +00:00