Fixes on corefields
This commit is contained in:
parent
d1b245c883
commit
c980654ce5
2 changed files with 3 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ class CharField extends PhangoField {
|
|||
|
||||
//Delete Javascript tags and simple quotes.
|
||||
$this->value=Utils::form_text($value);
|
||||
return form_text($value);
|
||||
return Utils::form_text($value);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ class TextHTMLField extends PhangoField {
|
|||
|
||||
$this->form='TextAreaForm';
|
||||
$this->multilang=$multilang;
|
||||
$this->set_safe_html_tags();
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -118,7 +119,7 @@ class TextHTMLField extends PhangoField {
|
|||
$this->allowedtags['i']=array('pattern' => '/<i.*?>(.*?)<\/i>/s', 'replace' => '<i_tmp>$1</i_tmp>', 'example' => '<i></i>');
|
||||
$this->allowedtags['u']=array('pattern' => '/<u.*?>(.*?)<\/u>/s', 'replace' => '<u_tmp>$1</u_tmp>', 'example' => '<u></u>');
|
||||
$this->allowedtags['blockquote']=array('pattern' => '/<blockquote.*?>(.*?)<\/blockquote>/s', 'replace' => '<blockquote_tmp>$1</blockquote_tmp>', 'example' => '<blockquote></blockquote>', 'recursive' => 1);
|
||||
$this->allowedtags['img']=array('pattern' => '/<img.*?alt="([aA-zZ]+)".*?src="('.str_replace('/', '\/', PhangoVar::$base_url).'\/media\/smileys\/[^\r\n\t<"].*?)".*?\/>/', 'replace' => '<img_tmp alt="$1" src="$2"/>', 'example' => '<img alt="emoticon" src="" />');
|
||||
//$this->allowedtags['img']=array('pattern' => '/<img.*?alt="([aA-zZ]+)".*?src="('.str_replace('/', '\/', PhangoVar::$base_url).'\/media\/smileys\/[^\r\n\t<"].*?)".*?\/>/', 'replace' => '<img_tmp alt="$1" src="$2"/>', 'example' => '<img alt="emoticon" src="" />');
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue