63 Commits

Author SHA1 Message Date
4785f07f12
Always assume UTF-8. 2022-02-20 17:14:54 +01:00
694309bec9
Force UTF-8, remove all non-UTF-8 translations. 2022-02-20 01:11:37 +01:00
16e4bc7f2a
Remove ancient compatibility stuff. 2022-02-20 01:10:03 +01:00
7e8dcb0cb6
Added ConfigContainer. Routing.php is not yet fully converted. 2022-02-14 02:49:49 +01:00
onli
8d8aa4ce66 Do not print errors for PHP warnings in production mode
Not even when logged in. The error output stopped the script execution. This change enables the usage of old themes, if their critical issues are fixed
2021-07-01 22:03:45 +02:00
onli
34f52d1aae Fix: The error output left a pre-tag open 2021-06-30 21:46:39 +02:00
onli
18a6904d5d Fix: Serendipity stopped when encountering a Warning
Changes this to only stopping if debug mode is enabled
2021-06-30 21:39:42 +02:00
onli
391a372a55 php8 compat: fix missing $args and charset error 2021-04-19 17:19:44 +02:00
Hanno Böck
0ef188187d Remove obsolet handling of magic_quotes_* 2021-04-19 17:17:35 +02:00
Garvin Hicking
b4f0b35a5d
Merge pull request #650 from stephanbrunker/master
Fix a lot of single issues and overhaul the language settings
2019-10-17 13:46:06 +02:00
Garvin Hicking
5b35569e73 [BUGFIX] Fixes missing referenced variable when $_GET['serendipity'] is not an array
refs #642
refs #653
2019-10-15 14:03:34 +02:00
Stephan Brunker
502b837dd6 Fix a lot of single issues and overhaul the language settings
see docs/NEWS and the plugin/changelog files for details
2019-10-13 22:49:03 +02:00
Hanno
5765d1a779
Avoid undefined index notices, see https://github.com/s9y/Serendipity/issues/642 2019-10-13 18:21:18 +02:00
Garvin Hicking
e8b8be0342 [TASK] Prevents PHP warnings with type differences on $_REQUEST['serendipity']
refs #642
2019-10-07 17:03:33 +02:00
Garvin Hicking
701ebe442d Rever this for the release, re-introduce later 2017-04-09 09:35:14 +02:00
Garvin Hicking
8fee805ca1 Prepare release 2.1.1 2017-04-09 09:15:55 +02:00
Thomas Hochstein
c3dfe61b57 Fix broken compat layer.
Partially revert 7a0a9e215600284eb5aeea201d79563368f4c45b

serendipity_specialchars() and others were made to
return "" when fed something that is not a string.
So boolean values (1 or TRUE) will be returned as "",
i.e. FALSE, breaking the blog in interesting ways
(i.e. displaying wrong configuration values and
saving them to the database).

Closes #476.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-09 00:49:10 +02:00
Garvin Hicking
86a17f9a2b Register fatal error handler 2017-04-08 15:45:21 +02:00
klemens
5a95db314a spelling fixes 2017-04-06 22:26:07 +02:00
Thomas Heidrich
7a0a9e2156 some PHP functions expect strings and crash otherwise 2017-02-07 21:13:51 +01:00
Garvin Hicking
98099b6a02 Improve custom s9y error handling. Will post in issue #399 for details. 2016-05-09 14:34:34 +02:00
onli
a8ac90c466 Init php 7 compatibility (#399)
A first approach at fixing s9y for php 7, which makes it possible to
write an entry without any error message. The specific changes are: 1.
__construct for the plugin classes 2. Update Cache Lite to a modern
version to fix its similar constructor problem 3. Remove the
session_regenerate_id call from the session destructor (should get
re-added to session creation where necessary) 4. Remove error handler to
prevent silenced warnings from becoming fatal exceptions
2016-04-26 22:39:11 +00:00
Ian
69f8eae646 some cleanups found on the way 2016-02-04 15:26:38 +01:00
onli
a3f7958830 Style serendipity_die (fixes #89) 2016-01-15 16:50:15 +01:00
Ian
d7b1e7d23d minor whitespace and code cleanup
and a small github docnote fix
and added a todo for transforming a filename into a valid  upload path
2015-09-30 11:22:37 +02:00
Ian
9ed46b892f enhance error reporting 2015-01-20 17:07:58 +01:00
Garvin Hicking
d35b4d127d Fix wrong parameters to serendipity_entity_decode() 2014-12-23 11:33:41 +01:00
Garvin Hicking
c8e147874b Move around searchTerm escaping, document. 2014-12-19 09:55:34 +01:00
Ian
aca77bd482 cleanup cosmetics 2014-12-10 14:34:54 +01:00
Ian
4466096c18 better 7e46e92e1b8cf35237c8dc15f14b79b7df48ffff 2014-12-07 18:28:58 +01:00
Ian
7e46e92e1b lang charset proposel for serendipity_die()
References #236
2014-12-07 18:26:01 +01:00
onli
d91b86486b specialchar charset fallback on early calls (#236, #240) 2014-12-07 17:47:14 +01:00
Garvin Hicking
73f417fe39 Check for ENT_HTML401 existance to make the patch work with PHP 5.3 2014-11-24 11:18:21 +01:00
Garvin Hicking
eab43b12f5 Adjust remaining htmlspecialchars() accordingly 2014-11-24 10:13:40 +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
Ian
d633a62bdc only use errorHandlerCreateDOM() if theme has it set
This is odd for all custom or older theme errors and for theme development though.
References #167
2014-06-02 17:26:08 +02:00
Ian
cfaad3b04c enhance debug note 2014-04-25 14:01:53 +02:00
Ian
c69932eaae rename create() js errorHandler function to errorHandlerCreateDOM() 2014-03-24 15:19:16 +01:00
Ian
d2e34d3bcf upport missing errorToExceptionHandler() changes 2014-03-24 15:17:28 +01: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
a654b13a9a Complete include_once usage, romove constants 2013-06-22 12:32:54 +02:00
onli
cbe07715fd use include_once 2013-06-21 18:11:03 +02:00
Ian
4a317336fe upport 1b53092a21 exception tuning
mainly this was introduced to seperate db connect errors from tracing, while these errors carried security data in thrown trace path
2013-04-08 20:08:35 +03:00
Ian
ec83606bf1 debug_backtrace >= php 5.3.6 only 2013-02-12 09:26:31 +01:00
Ian
8c1adf2189 typo 2013-02-07 12:34:44 +01:00
Ian
119f64c25c reset verbosity in testing environments back to original intention
and be more strict to $serendipity['production']
2013-02-07 12:34:19 +01:00
Garvin Hicking
53ea38aa3c Port from master 2013-01-21 10:06:09 +01:00
Ian
57e63251b3 cleared whitespace missmatch in serendipity_die() 2012-08-23 17:18:31 +02:00
Garvin Hicking
f12f53aaab Damn, why does cherry picking not work? 2012-06-12 20:51:57 +02:00
Ian
4db3a08f19 corrected note typos and changed trigger_errors error LEVEL
back to Warning as before, which still is halted by the smarty error handler
2011-12-25 15:24:08 +01:00