52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
725057c273
Fix #18734 : Added yii\validators\EmailValidator::$enableLocalIDN
2021-07-06 01:55:02 +03:00
2f051bc441
Add Since PHPDoc
2021-04-07 21:55:25 +03:00
63cb61f591
Refactoring so regex has it's own variables
2021-04-06 07:49:57 -07:00
6659e6a187
Refactor based on suggestion
2021-04-01 16:27:59 -07:00
d02d60e070
Limiting explode to 2
2021-03-31 15:21:19 -07:00
808c64d900
Refactoring method per request
2021-03-31 15:15:46 -07:00
3593696b93
Fixing Email Validator to handle edge case where email address is valid but fails ascii conversion.
2021-03-31 11:50:24 -07:00
f8611d170d
Fix #17573 : EmailValidator
with checkDNS=true
throws ErrorException
on bad domains on Alpine
2019-10-09 14:59:45 +03:00
7a82f7d88d
Refactored EmailValidator DNS validation to take get_dns_record() into account
2019-03-20 21:48:19 +03:00
bf89d95d6a
Fixes #17083 : Fixed yii\validators\EmailValidator::$checkDNS
tells that every domain is correct on alpine linux
2019-03-04 22:35:21 +03:00
cd0e0e71c1
Fixed idn_to_ascii function call to prevent incorrect translation
...
Without the `IDNA_NONTRANSITIONAL_TO_ASCII` parameter, domain `faß.de`
gets converted to `fass.de` that is not correct way of making IDN.
Follows http://www.unicode.org/reports/tr46/
2018-07-11 19:53:13 +03:00
71c541773f
PHPDoc fix
2018-01-23 13:17:25 +02:00
65f6b59b35
@inheritdoc
notation changed
2018-01-23 13:11:24 +02:00
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
2017-10-19 01:54:40 +03:00
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
06967f9018
Fixes #13254 : Core validators no longer require Yii::$app to be set
2017-03-14 15:37:54 +03:00
f5beaf3edf
Make validator getClientOptions public
...
This allows implementing custom client-side validation
without extending every validator.
Fixes #11163
close #13145
2016-12-08 01:30:36 +01:00
76e253e140
yii\validators\Validator
- added separate methods for client-side validation options
...
Closes #11163
2016-12-05 22:33:49 +02:00
332637db83
Fixed EmailValidator`to prevent false-positives checks
...
Fixed EmailValidator`to prevent false-positives checks when property `checkDns` is set to `true`
Fixes #12714
2016-11-13 18:12:34 +02:00
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00
4c31c26628
EmailValidator - the name of the mailbox is no longer limited with the length
2016-02-01 23:49:51 +02:00
d7bb1be296
EmailValidator - specified encoding for mb_strlen
2015-11-15 19:39:50 +02:00
bf6b50f58e
#10142 Fixed EmailValidator to check email length properly
2015-11-14 00:39:12 +02:00
ae42a054bb
PSR-2 spaces, commas, etc
2015-06-09 00:05:06 +03:00
78d3a856d3
Added Json::htmlEncode()
to support safer JSON data encoding in HTML code
2015-05-09 23:38:17 -04:00
2e414632be
fix EmailValidator - added unit tests
...
close #7183
fixes #7172
2015-02-28 23:04:12 +01:00
d13d274d05
renamed $object to $model
2014-10-31 14:56:59 -04:00
3a1e0f3a5c
property codestyle framework
2014-07-30 00:21:31 +02:00
01e5ffdceb
guide WIP [skip ci]
2014-06-05 22:40:37 -04:00
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
5d23a066ca
Removed unused imports
2014-01-12 23:42:55 +04:00
e7fab51efc
fixes #1870 : better fix that is message extractor friendly
2014-01-12 23:12:06 +04:00
4239b2a5f2
Fixes #1870 : Validation errors weren't properly translated when using clientside validation
2014-01-12 21:37:28 +04:00
0c38655217
psr-4 move
2014-01-10 21:41:43 -05:00
0d814fa523
Moved "framework" to "iii".
2013-05-09 12:00:15 -04:00
dd5969147d
move JsExpression to web.
2013-05-07 07:39:24 -04:00
4b30fe8b5a
Finished js validation for email and regular expression validators.
2013-05-02 10:52:25 -04:00
ae6c69fc8f
refacotring validators.
2013-04-05 08:32:13 -04:00
3bd186deeb
refactored validators.
2013-04-03 23:23:32 -04:00
4fdaab3560
updated file header.
2013-03-04 08:03:46 -05:00
3c1452e84b
Changed the separator of message category.
2013-02-05 11:48:35 -05:00
54ee8c44a0
refactored exceptions.
...
I18N WIP.
2013-02-04 16:39:19 -05:00
4f1efc74a3
validator cleanup.
2013-01-21 19:20:20 -05:00
8e05e6e62d
changed copyright line.
2013-01-07 11:34:52 -05:00
083ca919d3
validators
2012-05-07 03:44:56 +04:00
af593aad5e
w
2011-07-22 23:08:40 -04:00
0c7a75bef7
w
2011-07-22 17:09:47 -04:00