[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.data_cleaner.inc.php [Version-0_9_
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.data_cleaner.inc.php [Version-0_9_16-branch] |
Date: |
Sat, 07 Jan 2006 11:37:51 +0000 |
CVSROOT: /cvsroot/phpgwapi
Module name: phpgwapi
Branch: Version-0_9_16-branch
Changes by: Dave Hall <address@hidden> 06/01/07 11:37:51
Modified files:
inc : class.data_cleaner.inc.php
Log message:
supress E_NOTICE for undefined var
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/phpgwapi/inc/class.data_cleaner.inc.php.diff?only_with_tag=Version-0_9_16-branch&tr1=1.1.2.4&tr2=1.1.2.5&r1=text&r2=text
Patches:
Index: phpgwapi/inc/class.data_cleaner.inc.php
diff -u phpgwapi/inc/class.data_cleaner.inc.php:1.1.2.4
phpgwapi/inc/class.data_cleaner.inc.php:1.1.2.5
--- phpgwapi/inc/class.data_cleaner.inc.php:1.1.2.4 Fri Sep 30 16:22:28 2005
+++ phpgwapi/inc/class.data_cleaner.inc.php Sat Jan 7 11:37:51 2006
@@ -1,7 +1,7 @@
<?php
/**
* HTML Sanitizer, attemtpts to make variables safe for users.
- * $Id: class.data_cleaner.inc.php,v 1.1.2.4 2005/09/30 16:22:28 Caeies Exp $
+ * $Id: class.data_cleaner.inc.php,v 1.1.2.5 2006/01/07 11:37:51 skwashd Exp $
*
* Taken from the horde project by Dave Hall for use in phpGroupWare
*
@@ -117,7 +117,7 @@
/* Remove everything outside of and including the <body> tag
* if displaying inline. */
- if (!$attachment) {
+ if (!isset($attachment) || !$attachment) {
$data = preg_replace('/.*<body[^>]*>/si', '', $data);
$data = preg_replace('/<\/body>.*/si', '', $data);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc class.data_cleaner.inc.php [Version-0_9_16-branch],
Dave Hall <=