Using the $_SERVER variable crashes when saving...

Search
Other Bug Reports questions
Forum

Using the $_SERVER variable crashes when saving article or module, tested in J3 and J4

Louis Veillette's Avatar Louis Veillette
Simply try the following, save, and you'll see what I mean 🙂

{source}
<?php print_r($_SERVER); ?>
{/source}
Peter van Westen's Avatar Peter van Westen ADMIN
Sourcerer is not involved when saving the article/content.
It is only active on the frontend when that content is displayed.

This is probably due to some security module on your server that disallows sending form content that includes '$_SERVER'.
You will most probably get the same result when not using those {source} tags at all, and just try to solve:
<?php print_r($_SERVER); ?>
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in