Version 4.3.6
This commit is contained in:
1 parent
fe1acf984a
commit
1a0c7fd3c2
609 files changed
+14707
-5726
No files matched your search
@@ -190,13 +190,15 @@ class _Text extends TextArea
|
||||
{
|
||||
foreach( $return as $k => $v )
|
||||
{
|
||||
$return = preg_replace( '/\p{C}+/u', '', $return );
|
||||
$return[ $k ] = preg_replace( '/\p{C}+/u', '', $v );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $this->options['autocomplete']['prefix'] ) and $this->options['autocomplete']['prefix'] )
|
||||
{
|
||||
$return = is_array( $return ) ? $return : ( $return ? array( $return ) : array() );
|
||||
|
||||
$firstAsPrefix = $this->name . '_first_as_prefix';
|
||||
$freechoicePrefixCheckbox = $this->name . '_freechoice_prefix';
|
||||
$freechoicePrefix = $this->name . '_prefix';
|
||||
@@ -437,7 +439,7 @@ class _Text extends TextArea
|
||||
}
|
||||
|
||||
/* Split on profanity */
|
||||
if( $this->options['bypassProfanity'] === FALSE and is_string( $this->value ) and \IPS\Dispatcher::i() instanceof \IPS\Dispatcher\Front and !\IPS\Member::loggedIn()->group['g_bypass_badwords'] )
|
||||
if( $this->options['bypassProfanity'] === FALSE and is_string( $this->value ) and \IPS\Dispatcher::i() instanceof \IPS\Dispatcher\Front and !\IPS\Member::loggedIn()->group['g_bypass_badwords'] AND !$this->options['accountUsername'] )
|
||||
{
|
||||
$newVal = NULL;
|
||||
if ( count( $exactProfanityBreakpoints ) )
|
||||
@@ -457,7 +459,7 @@ class _Text extends TextArea
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new \DomainException( 'Profanity Filter' );
|
||||
throw new \DomainException( \IPS\Member::loggedIn()->language()->addToStack( 'form_tags_not_allowed', FALSE, array( 'sprintf' => array( $section ) ) ) );
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -483,7 +485,7 @@ class _Text extends TextArea
|
||||
{
|
||||
if ( mb_stristr( $value, $type ) )
|
||||
{
|
||||
throw new \DomainException( 'Profanity Filter' );
|
||||
throw new \DomainException( \IPS\Member::loggedIn()->language()->addToStack( 'form_tags_not_allowed', FALSE, array( 'sprintf' => array( $row->type ) ) ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user