From 1b6b1526ea541cc1548b1d543d28d967688ea2aa Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sat, 28 Jun 2003 07:54:26 +0000 Subject: [PATCH] Added section about rg=off requirement git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5127 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- doc/plugin.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/plugin.txt b/doc/plugin.txt index 54f1550d..cce07212 100644 --- a/doc/plugin.txt +++ b/doc/plugin.txt @@ -1113,6 +1113,22 @@ code generates (it's OK, really, it happens to the best of us... except me!). Please make sure to fix them all before you release the plugin. +Compatibility with register_globals=Off +--------------------------------------- + +Most sensible systems administrators now run their PHP systems with the +setting "register_globals" as OFF. This is a prudent security setting, +and as the SquirrelMail core code has long since been upgraded to work +in such an environment, we are now requiring that all plugins do the same. +Compatibility with this setting amounts to little more than explicitly +gathering any and all variables you sent from a
tag as GET or POST +values instead of just assuming that they will be placed in the global +scope automatically. There is nothing more to do than this: + + global $favorite_color; + sqgetGlobalVar('favorite_color', $favorite_color, SQ_FORM); + + Extra Blank Lines ----------------- -- 2.25.1