Browse Source

Force magic_quotes_runtime to be off, since SquirrelMail breaks badly if it's on.
If there's a better place to put this, someone let me know.

tassium 22 years ago
parent
commit
108d7b4616
1 changed files with 5 additions and 0 deletions
  1. 5 0
      functions/global.php

+ 5 - 0
functions/global.php

@@ -13,6 +13,11 @@
  * $Id$
  */
 
+# If magic_quotes_runtime is on, SquirrelMail breaks in new and creative ways.
+# Force magic_quotes_runtime off.
+# chilts@birdbrained.org - I put it here in the hopes that all SM code includes this.
+# If there's a better place, please let me know.
+ini_set('magic_quotes_runtime','0');
 
 /* convert old-style superglobals to current method
  * this is executed if you are running PHP 4.0.x.