diff --git a/api/src/Etemplate/Widget/HtmlArea.php b/api/src/Etemplate/Widget/HtmlArea.php index 472318a5cb..4c80cdf356 100644 --- a/api/src/Etemplate/Widget/HtmlArea.php +++ b/api/src/Etemplate/Widget/HtmlArea.php @@ -75,7 +75,7 @@ class HtmlArea extends Etemplate\Widget // only purify for html, mode "ascii" is NO html and content get lost! if ($this->attrs['mode'] != 'ascii') { - $value = Api\Html::purify($value, $this->attrs['validation_rules']); + $value = Api\Html\HtmLawed::purify($value, $this->attrs['validation_rules']); } $valid =& self::get_array($validated, $form_name, true); if (true) $valid = $value; diff --git a/api/src/Html.php b/api/src/Html.php index 69437d1eb6..1e1438f206 100644 --- a/api/src/Html.php +++ b/api/src/Html.php @@ -665,7 +665,6 @@ egw_LAB.wait(function() { */ static function link($_url,$vars='') { - //echo "
html::link(url='$url',vars='"; print_r($vars); echo "')
\n"; if (!is_array($vars)) { parse_str($vars,$vars); @@ -779,7 +778,7 @@ egw_LAB.wait(function() { continue; // parameter } // get the current part from the optional 'h' or 'f' prefix of the key - $p = $key[0] == 'h' ? html::THEAD : ($key[0] == 'f' ? html::TFOOT : html::TBODY); + $p = $key[0] == 'h' ? self::THEAD : ($key[0] == 'f' ? self::TFOOT : self::TBODY); if ($part < $p && ($part || $p < self::TBODY)) // add only allowed and neccessary transitions { if ($part) $html .= ''.self::$part2tag[$part].">\n"; @@ -977,7 +976,7 @@ egw_LAB.wait(function() { { $url = self::link($url,$vars); } - //echo "html::a_href('".self::htmlspecialchars($content)."','$url',".print_r($vars,True).") = ".self::link($url,$vars)."
"; + //echo "self::a_href('".self::htmlspecialchars($content)."','$url',".print_r($vars,True).") = ".self::link($url,$vars)."
"; return ''.$content.''; } diff --git a/api/src/Html/CkEditorConfig.php b/api/src/Html/CkEditorConfig.php index c9e803e223..5e06d5e3ea 100644 --- a/api/src/Html/CkEditorConfig.php +++ b/api/src/Html/CkEditorConfig.php @@ -212,13 +212,13 @@ class CkEditorConfig { //Get the skin name $skin = $GLOBALS['egw_info']['user']['preferences']['common']['rte_skin']; - //error_log(__METHOD__.__LINE__.' UserAgent:'.html::$user_agent); + //error_log(__METHOD__.__LINE__.' UserAgent:'.EGroupware\Api\Header\UserAgent::type()); //Convert old fckeditor skin names to new ones switch ($skin) { case 'kama': $skin = "kama"; - //if (html::$user_agent=='firefox' || html::$user_agent=='msie') $skin='moonocolor'; + //if (EGroupware\Api\Header\UserAgent::type()=='firefox' || EGroupware\Api\Header\UserAgent::type()=='msie') $skin='moonocolor'; break; case 'silver': case 'moono-dark': diff --git a/api/src/Mail.php b/api/src/Mail.php index db9b093e2c..e832c24212 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -4196,7 +4196,7 @@ class Mail // purify got switched to htmLawed // some testcode to test purifying / htmlawed //$_html = "hi".$_html; - $_html = html::purify($_html,self::$htmLawed_config,array(),true); + $_html = Html\HtmLawed::purify($_html,self::$htmLawed_config,array(),true); //if ($hasOther) $_html = $matches[1]. $_html. $matches[3]; // clean out comments , should not be needed as purify should do the job. $search = array(therekram