111 Commits

Author SHA1 Message Date
onli
ba6ccb3dbb Make $entry available for templates (fix #610) 2019-07-03 17:51:36 +02:00
onli
153b5a37f1 Fix: Do not throw error when entry got deleted, go to 404 page 2019-02-16 14:46:46 +01:00
onli
4c4545428d Fix internal cache, init proper functions API 2019-02-16 13:07:53 +01:00
onli
e0f230dd15 Remove serendipity_purgeEntry
Removed pregenerated entries, but that functionality is long gone
2019-02-12 23:18:52 +01:00
onli
d52f0004a4 Add voku/simplecache as alternative to Cache/Lite and use it cache
Cache/Lite is abandoned
2019-02-12 18:52:08 +01:00
Garvin Hicking
775b71134c * Fixed bug in pull request #392 which overwrote user specified
input for logged in authors with an empty realname (wrong array
      key name) and deleted all existing text input
2018-04-23 11:58:32 +02:00
onli
2debad91d0 Workaround: Add smartyvars.uriargs to cache key
The freetags plugin sets this->displaytag in the frontend_fetchentries hook, and only sets clean_page if it sees that variable in the entry_display hook. The result is that wrong entries are shown on tag pages. Adding the smartyvars allows caching the correct $entries the plugin would have returned, working around that limitation without simulatign the frontend_fetchentries hook.
2017-04-20 17:42:48 +02:00
onli
bf213b752d Drop outer printEntries cache 2017-04-20 01:19:43 +02:00
onli
e61d38a61d Cache: Add additional state variables + single entry mode
fetchEntries is heaviliy realient on glboal state variables, and that was missed initially. The last commit c8bbb35aacee7af8527820f3d3d5fd47d1dbf340 fixed that partially, but did not catch all global state variables. Additionally, this fixed the clean_page mode as used by staticpage by adding the logic and event hook to printEntriesCached
2017-04-20 01:07:24 +02:00
onli
c8bbb35aac Fix cache by getting & setting global state variables
See https://board.s9y.org/viewtopic.php?p=10447129#p10447129. Missed in #345
2017-04-19 01:11:34 +02:00
Thomas Hochstein
68a6a58780 Fix comment preview for logged-in user.
Comment form data was unconditionally overwritten
by user data. Make that conditional ...

Fixes #487

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-13 19:19:02 +02:00
onli
f947c66f66 Add multiple missing CSRF tokens (#439)
Deleting comments, disabling comment threads, installing plugins, toggling a spartacus update check
2017-01-16 15:32:16 +01:00
Garvin Hicking
c62d667287 * [Security] Fix missing integer casting for inserting new categories
(thanks to cdxy)
2017-01-16 11:29:15 +01:00
Garvin Hicking
0c8416f5df Allow setting a default category.
Needs some testing, I am not sure how to solve the case now where "no category" shall be used. It will always fall back to the default category.
Probably if someone uses a default category, that's the intended behaviour?
2016-12-23 10:14:27 +01:00
Garvin Hicking
cfd75ec877 Security patch, see docs/NEWS 2016-09-22 12:51:00 +02:00
onli
acef784f41 Fix: Entry preview using backend entries.tpl 2016-09-09 14:55:29 +02:00
Ian
d93674485d cleaups 2016-03-19 17:18:11 +01:00
onli
020ca7f651 Merge pull request #392 from xoxys/master
Provide authenticated userdata for frotend comment form
2016-02-12 17:32:38 +01:00
xoxys
7faa1cb195 provide userdata for frotend comment form 2016-02-12 09:12:05 +01:00
xoxys
7af3980f96 Update functions_entries.inc.php 2016-02-12 09:08:54 +01:00
xoxys
68bb6fbeb9 provide userdata for frotend comment form 2016-02-12 09:07:00 +01:00
Ian
d97acf8b05 remove RQ, see commit and cooments
1c1c11f31fd31b54ae98f2921f8411208704c9e5#commitcomment-15999285
2016-02-10 10:44:58 +01:00
Ian
1c1c11f31f RQ some function arguments
What shall we do with them, see serendipity_fetchEntry() and getClassByInstanceID() ?
2016-02-08 15:14:49 +01:00
onli
2d7947eb93 Add cache activation to configuration (closes #345) 2016-01-15 14:40:51 +01:00
Ian
2a228f68cf fix typos, brackets, whitespaces 2015-12-20 17:26:56 +01:00
onli
0125f1539e Use internal cache to speedup printEntries & fetchEntries (#345) 2015-05-30 01:23:57 +02:00
onli
b73eb367f2 Prevent negative offset (#321) 2015-03-27 00:00:10 +01:00
onli
75397c7d47 Remove $p == 1 search wildcard requirement (#309)
The bug meant to be fixed in 51208e0f72 (diff-cbbd600f627a5af39c73092fbc3fbf46) is not reproducible anymore
2015-03-07 11:55:37 +01:00
onli
bb986c0546 Use better search identifier to fix #269 2015-01-22 19:49:30 +01:00
onli
3e7e6a03ed Fix search page order when stable archive is on (#269) 2015-01-21 18:53:46 +01:00
onli
148c67bf9b Publish now + minor cleanup (closes #262) 2015-01-17 17:26:33 +01:00
Garvin Hicking
4d17c0ae02 Added SQLite3 OO layer, old one did not work for PHP 5.4+
PDO SQlite3 is preferrable though
2014-11-24 11:48:16 +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
6c26d1b3f6 htmlspecialchars charset for entry title, extends 8f894f5
References #236
2014-11-22 10:29:34 +01:00
Ian
8f894f50f1 fix native charset böog missing smarty entry title
Basically not a Smarty error. Just a php htmlspecialchars($entry['title']) setting this var to be empty.

References #236
2014-11-21 18:03:26 +01:00
Matthias Gutjahr
2624bcadec Add checks for indexes (cp. issue #206, amends commit 8002559) 2014-09-07 22:01:54 +02:00
Matthias Gutjahr
8002559603 Fix missing entry properties passed to 'backend_publish' event hook (Fixes #206)
Some plugins make use of additional entry properties (title, body, extended, author) after being called by the 'backend_publish' hook, e.g.

 * serendipity_event_forum
 * serendipity_event_freetag
 * serendipity_event_ljupdate
 * serendipity_event_trackback
 * serendipity_event_versioning
 * serendipity_event_entryproperties
 * serendipity_event_mailer
 * serendipity_event_twitter

 Thus we need to set these properties in the serendipity_updertEntry() method to make sure the plugins get the required data. Of course, we could fetch the entry either in overview.inc.php or again in each plugin, but that would mean an additional query to the DB.
2014-08-19 10:20:19 +02:00
Garvin Hicking
9b89c3d815 Another stab at fixing Issue #201
When no categories are delivered to serendipity_updertEntry this can mean two things:
- categories need to be un-assigned
- categories where not addressed/fetched/passed to the function [see include/admin/overview.inc.php for publishing a post! Or plugins like freetag, using serendipity_updertEntry]

To address this a new serendipity[had_categories] is added to the backend template, which can be checked for.

Feedback appreciated!
2014-08-08 14:23:19 +02:00
Ian
3660a2f116 dashboard entry publish keep timestamp - fixes and closes #160 2014-05-27 17:10:45 +02:00
Ian
3c21bfb9f4 be more strict - fixes 14ce11c778 2014-05-25 11:46:35 +02:00
Ian
14ce11c778 set entries update isdraft to string value false
to be able to publish draft entries from dashboard

References #160
2014-05-23 17:11:05 +02:00
Garvin Hicking
38c19fc150 If updertEntry is called with an array structure, make sure it is usable 2014-03-05 15:37:22 +01:00
Matthias Mees
8151645882 Don't emit comments, trackbacks or comment form in backend preview.
Fix by @onli. References #62
2013-10-10 15:58:55 +02:00
Ian
474953daa5 try to fix - draft preview non-object error
Draft previews threw:
Fatal error: Call to a member function assignByRef() on a non-object in /fullpath/include/functions_entries.inc.php on line 1235, which is the $serendipity['smarty']->assignByRef('entries', $dategroup); line.

Please double check if that is gone now.
2013-09-21 14:30:53 +02:00
Ian
3e79c6d06b Fixed pagination when searching terms with fetchlimit < 4 2013-09-01 14:10:23 +02:00
onli
a654b13a9a Complete include_once usage, romove constants 2013-06-22 12:32:54 +02:00
onli
c7162adf31 fix entries-preview 2013-06-16 15:13:18 +02:00
Matthias Mees
7288ffdef8 Fixed most of the redundant br elements in the core. 2012-12-03 13:35:59 +01:00
Ian
d3d557de91 strip down double slashes in prev & next links
see http://board.s9y.org/viewtopic.php?f=10&t=18944
2012-11-12 13:26:05 +01:00
Garvin Hicking
d7ef7a7a04 port everything so that 2.0 and 1.7 have the same features 2012-06-12 19:39:11 +02:00