openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9f10d6eeca625bbf2f96e870ecbd588f7f5aaed1
parent 14a87de8a23ecbe481966572d541a705a9129bb1
Author: dankert <devnull@localhost>
Date:   Sun, 19 Dec 2004 22:16:43 +0100

Workaround, falls magic_quotes_gpc eingeschaltet ist

Diffstat:
functions/request.inc.php | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/functions/request.inc.php b/functions/request.inc.php @@ -20,7 +20,10 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // --------------------------------------------------------------------------- // $Log$ -// Revision 1.2 2004-11-10 22:44:36 dankert +// Revision 1.3 2004-12-19 21:16:43 dankert +// Workaround, falls magic_quotes_gpc eingeschaltet ist +// +// Revision 1.2 2004/11/10 22:44:36 dankert // *** empty log message *** // // Revision 1.1 2004/05/02 19:27:22 dankert @@ -32,6 +35,12 @@ $REQ = array_merge($HTTP_GET_VARS,$HTTP_POST_VARS,$_GET,$_POST); +if ( get_magic_quotes_gpc() == 1 ) +{ + foreach( $REQ as $p=>$v ) + $REQ[$p] = stripslashes($v); +} + function request_into_session( $name ) { global $REQ,$SESS;