浏览代码

Added section about rg=off requirement

pdontthink 22 年之前
父节点
当前提交
78a362cec4
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      doc/plugin.txt

+ 16 - 0
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.
 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 <form> 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
 Extra Blank Lines
 -----------------
 -----------------