1
0

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.
This commit is contained in:
Stephan Brunker
2019-11-15 01:51:53 +01:00
committed by onli
parent 60d2937c17
commit 756f520d71

View File

@@ -132,6 +132,10 @@ function serveJS($js_mode) {
header('Content-type: application/javascript; charset=' . LANG_CHARSET);
$out = "";
// FIXFIX: including genpage without any given action will generate the
// default page which is unneccessary, set action to empty to only make
// the fix below
$serendipity['GET']['action'] = 'empty';
include(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');