mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:26 +01:00
remove trailing whitespace from css in templates
This commit is contained in:
parent
5450945136
commit
0ba4b98cde
@ -917,6 +917,10 @@ class soetemplate
|
|||||||
$str = '$templ_data[] = array(';
|
$str = '$templ_data[] = array(';
|
||||||
foreach (self::$db_cols as $db_col => $name)
|
foreach (self::$db_cols as $db_col => $name)
|
||||||
{
|
{
|
||||||
|
if ($name == 'style') // remove trailing whitespace
|
||||||
|
{
|
||||||
|
$row[$db_col] = preg_replace('/[ \t]+$/m', '', $row[$db_col]);
|
||||||
|
}
|
||||||
// escape only backslashes and single quotes (in that order)
|
// escape only backslashes and single quotes (in that order)
|
||||||
$str .= "'$name' => '".str_replace(array('\\','\'',"\r"),array('\\\\','\\\'',''),$row[$db_col])."',";
|
$str .= "'$name' => '".str_replace(array('\\','\'',"\r"),array('\\\\','\\\'',''),$row[$db_col])."',";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user