We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d607279 commit 999e9cbCopy full SHA for 999e9cb
1 file changed
ajax.php
@@ -74,6 +74,31 @@
74
die();
75
}
76
77
+$installerActive = (!file_exists('INSTALL_BLOCK'));
78
+if ($installerActive)
79
+{
80
+ $module = '';
81
+ if (strpos($_REQUEST['f'], ':') !== false)
82
+ {
83
+ $parameters = explode(':', $_REQUEST['f']);
84
+ $module = preg_replace("/[^A-Za-z0-9]/", "", $parameters[0]);
85
+ }
86
+
87
+ if ($module !== 'install')
88
89
+ header('Content-type: text/xml');
90
+ echo '<?xml version="1.0" encoding="', AJAX_ENCODING, '"?>', "\n";
91
+ echo(
92
+ "<data>\n" .
93
+ " <errorcode>-1</errorcode>\n" .
94
+ " <errormessage>Installer is active; only installer AJAX actions are allowed.</errormessage>\n" .
95
+ "</data>\n"
96
+ );
97
98
+ die();
99
100
+}
101
102
if (strpos($_REQUEST['f'], ':') === false)
103
{
104
$function = preg_replace("/[^A-Za-z0-9]/", "", $_REQUEST['f']);
0 commit comments