Garvin Hicking
2ea886396b
[BUGFIX] Fixes missing referenced variable when $_GET['serendipity'] is not an array
...
refs #642
refs #653
2019-10-15 22:34:58 +02:00
Hanno
4a8616214f
Avoid undefined index notices.
...
See #642 .
Backported from master branch.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:28:53 +02:00
Garvin Hicking
2b9616276f
[TASK] Prevents PHP warnings with type differences on $_REQUEST['serendipity'].
...
refs #642
Backported from master branch.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:08:36 +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
Ian
ee116ee460
some more tweaking to the errorToExceptionHandler
2011-12-08 19:21:24 +01:00
Ian
c2afd4efc0
moved custom errorHandler to avoid XML Feed declaring and callback errors
2011-12-06 12:36:03 +01:00
Garvin Hicking
f59d157fc6
date zone
2011-05-10 12:51:30 +00:00
Garvin Hicking
677df54625
PHP 5.3 compatibility, upgrade Smarty to 2.6.26
2009-07-14 11:40:16 +00:00
Garvin Hicking
ed5a65320d
Add smaty modifier that can pass referenced variables to a smarty plugin api. Hurts to see that, but seems to be the only way
2007-06-01 15:31:54 +00:00
Garvin Hicking
12af228d66
not yet implemented issue, reported on the forums
2007-04-17 08:23:50 +00:00
Garvin Hicking
35bcbda057
Remove not yet supported filter call
2007-02-22 09:40:01 +00:00
Garvin Hicking
f03841587a
Ensure to not be able to call s9y files under circumstances where .htaccess does not deny request AND register_globals is turned on
2006-11-30 21:34:29 +00:00
Sebastian Nohn
7661964383
* add filter for php 5.2.0
2006-11-05 11:25:03 +00:00
Sebastian Nohn
75483ee2fe
* revert
2006-11-03 16:10:02 +00:00
Sebastian Nohn
6e63f3ed13
* hotfix to ensure compatibility php 5.2.0
2006-11-02 19:41:54 +00:00