Commit Graph

206 Commits

Author SHA1 Message Date
Arhell
fad0c5be77 update links 2022-08-07 11:54:16 +03:00
Robert Korulczyk
3792709f39 Use callable as type name instead of callback in phpdoc (#4378) 2021-10-06 16:44:08 +03:00
Alexander
7adcaac524 Fix #4291: The scheme (protocol) is deleted when validateIDN is enabled after validation 2020-03-18 18:28:45 +03:00
Mehdi Achour
83a86bca72 Fixes #4261: PHP 7.2 compatibility issues: INTL_IDNA_VARIANT_2003 has been deprecated
* Update to HTMLPurifier 4.10.0 which fixes IDNA deprecation
* Apply patch from 89b3fe431e
* Add PHP 7.4 to provoke breakage
* Use INTL_IDNA_VARIANT_UTS46 when available
2019-05-29 21:45:02 +02:00
Carsten Brandt
b4c48cd0db fixed code style 2017-06-08 09:15:26 +02:00
Alexander Makarov
acb7a3b488 Reworked model error escaping to escape on output rather than in validators directly 2017-05-27 02:26:06 +05:00
Alexander Makarov
15c7a56ad8 Use fsockopen 2017-05-22 14:46:32 +03:00
Ken Guest
eae177d81d Only use CURLOPT_CONNECT_ONLY if defined. 2017-05-22 14:13:49 +03:00
Ken Guest
9d122b32bf Timeout in checkMxPorts is now configurable, using curl for better granularity. 2017-05-22 14:13:45 +03:00
Alexander Makarov
6bf677ab23 Fixes #4122: Fixed typo in phpdoc 2017-01-13 01:17:59 +03:00
Carsten Brandt
054defab6c fixed docs
fixes #2421
2016-01-13 17:04:01 +01:00
UA2004
31190071f3 Added 'validateValue' method to 'CBooleanValidator' class
fixes #3812
close #3813
2016-01-05 17:20:51 +01:00
Carsten Brandt
8b1659216b fixed regressin in CEmailValidator::validateValue()
fixes #3764, which was introduced by #3283
2016-01-05 16:56:53 +01:00
Vladimir Kovpak
561308d34c Added example to range validator. 2015-05-30 00:17:18 +03:00
Carsten Brandt
34c57c359a fixed splitting of attributes in validator
ignore leading and trailing whitespace and commata.

fixes #3144
2015-05-07 17:28:33 +02:00
Alexander Makarov
4d60104268 Fixes #3731: updated CEmailValidator::validateValue() description 2015-01-28 01:25:04 +03:00
Alexander Makarov
0668f96096 Fixes #3570: removed attributes description from CValidator phpdoc. It duplicates per-property docs and is outdated. 2014-10-24 01:27:41 +04:00
Alexander Makarov
9c7a1a31f2 Fixes #2845: Fixed 1.1.14 regression affecting non-strict comparison in CRangeValidator validator 2014-10-24 01:19:33 +04:00
Carsten Brandt
f33a5c0203 allow array input for CFileValidator in all cases
fixes #3351
2014-06-20 14:29:03 +02:00
DaSourcerer
4b52a1a510 Merge branch 'master' of https://github.com/yiisoft/yii into 164-CEmailValidator 2014-05-13 07:48:11 +02:00
DaSourcerer
b34d0133c1 Simplification for mxSort() 2014-05-13 07:47:44 +02:00
Taras Gudz
8c68de1bb6 Fixed #3283 2014-04-04 14:16:18 +04:00
Max Lapko
951f399a18 Fix. file attribute is set to null only when the validator is safe 2014-02-11 12:16:23 +02:00
marcovtwout
db13ce2d2e CFileValidator is no longer unsafe by default
CFileValidator is no longer unsafe by default to prevent setting
arbitrary values. Instead, when no file is uploaded attribute is set to
null (marcovtwout)
2014-02-03 11:40:23 +01:00
Carsten Brandt
981881b40c Fixed regex for #3144
see comments in c1d781ad23
2014-01-05 04:11:05 +01:00
Alexander Makarov
c1d781ad23 Fixes #3144: It wasn't possible to use attributes with spaces in validation rules 2014-01-04 19:41:56 +01:00
Paul Klimov
48ead00504 CFileValidator fixed to encode file name, while composing error messages. 2013-10-14 16:47:04 +03:00
Paul Klimov
31e7ab1c04 CFileValidator has been fixed. 2013-08-29 11:41:25 +03:00
Rupert-RR
4aaae10174 Added a check for the OK file upload code to avoid checking all the
alternatives when the upload was ok.
Return from the method in the file size error branch when the file was
not uploaded.
Added a check in the MIME type validation to only check MIME types if
the CUploadedFile's tempName is not empty.
2013-08-19 14:44:30 +04:00
resurtm
e091388e09 Fixes #2691. More descriptive exception message. 2013-07-30 19:53:46 +06:00
Carsten Brandt
27d65f50f9 better doc for UnsafeValidator::validateAttribute 2013-07-16 13:27:36 +02:00
Boaz Rymland
d074ee56f3 added a little term
added a little term that better clarifies that the comment refers to many PHP *built in* functions, not generally speaking PHP functions.
2013-07-10 12:23:31 +03:00
resurtm
05bca7caa7 CUrlValidator + didn't respect custom value. 2013-07-05 17:28:21 +06:00
resurtm
5f99be770d Additions to #2602:
1. Proper Net_IDNA2 usage. Net_IDNA2::decode() and Net_IDNA2::encode()
accepts only domains, not full URLs. Before this fix framework used
to pass full URLs which is wrong usage.

2. If CEmailValidator or CUrlValidator is being used under PHP 5.3.0+,
native `idn` PHP extension will be used (`idn_to_utf8` and `idn_to_ascii`
functions in particular). Otherwise Net_IDNA2 will be used (for PHP
< 5.3.0).
2013-07-04 19:32:09 +06:00
creocoder
bbedefb89f Added CEmailValidator fix 2013-07-04 02:43:45 +04:00
creocoder
9ea6e16c7c IDNA2 fix 2013-07-04 00:54:33 +04:00
Alexander Makarov
615dbd9802 used strcmp instead of complex comparison, code formatting 2013-06-12 22:24:26 +04:00
Alexander Makarov
c902d50424 fixes #2554 2013-06-12 14:57:10 +04:00
Alexander Makarov
4e394abfb8 Merge branch '895-add-params-to-inline-client-validator' of github.com:slavcodev/fork-yii into slavcodev-895-add-params-to-inline-client-validator
Conflicts:
	CHANGELOG
2013-05-27 14:15:04 +04:00
Alexander Makarov
c7a7b55201 Adjusted phpdoc, fixed code style 2013-05-27 13:59:51 +04:00
Alexander Makarov
f284867b91 Merge branch '1863_enhance_CActive_hierarchy_extensibility' of github.com:denisarius/yii into denisarius-1863_enhance_CActive_hierarchy_extensibility
Conflicts:
	CHANGELOG
2013-05-27 13:46:51 +04:00
Carsten Brandt
a3e9fbe0bc fixed documentation example code of CFileValidator
fixes #1458
2013-05-27 03:33:09 +02:00
Carsten Brandt
1e993ec2bb better doc for CRequiredValidator::$trim
pr #2354
2013-04-17 21:57:49 +02:00
Carsten Brandt
a2aa6ee648 Merge pull request #2354 branch '2343-required-validator-trim' of https://github.com/AnatolyRugalev/yii into AnatolyRugalev-2343-required-validator-trim
* '2343-required-validator-trim' of https://github.com/AnatolyRugalev/yii:
  changed changelog line
  Added @since for $trim property
  Modified changelog line
  Added changelog line
  Added CRequiredValidator test case for $trim => true
  Added CRequiredValidator test
  Added $trim property to CRequiredValidator

Conflicts:
	tests/framework/validators/ValidatorTestModel.php
2013-04-17 19:17:08 +02:00
AnatolyRugalev
6ba4f1c2bb Added @since for $trim property 2013-04-17 20:41:04 +06:00
Anatoly Rugalev
a982077c31 Added $trim property to CRequiredValidator 2013-04-16 23:46:49 +06:00
resurtm
1c96337745 Fixes #1669: CNumberValidator used to add wrong error messages in case non-numeric values being validated. 2013-04-03 16:15:06 +06:00
resurtm
f635a4c8a4 Error messages related to array value case changed. 2013-03-10 18:20:54 +06:00
resurtm
ed635aa9e2 Some validators used to cause warnings or errors in case non-scalar array typed values being checked. 2013-03-09 22:12:18 +06:00
resurtm
10d7999ba4 Vendors: phlymail's Net_IDNA was replaced by PEAR Net_IDNA2. 2013-03-08 23:46:34 +06:00