[pLog-svn] r1995 - plugins/trunk
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Wed May 11 22:56:46 GMT 2005
Author: oscar
Date: 2005-05-11 22:56:45 +0000 (Wed, 11 May 2005)
New Revision: 1995
Modified:
plugins/trunk/moblog.php
Log:
added an extra check for those servers where magic_quotes_gpc is enabled (otherwise we'd be getting a nicely escaped email)
Modified: plugins/trunk/moblog.php
===================================================================
--- plugins/trunk/moblog.php 2005-05-11 22:39:05 UTC (rev 1994)
+++ plugins/trunk/moblog.php 2005-05-11 22:56:45 UTC (rev 1995)
@@ -33,12 +33,17 @@
// get the request
$request = HttpVars::getRequest();
- $message = $request["message"];
+ $message = $request["message"];
if( $message == "" ) {
MoblogLogger::log( "There was no message!" );
die();
}
+ // check if we need to remove any quotes..
+ if( get_magic_quotes_gpc()) {
+ $message = stripslashes( $message );
+ }
+
MoblogLogger::log("-- message --");
MoblogLogger::log($message);
MoblogLogger::log("-- end --");
More information about the pLog-svn
mailing list