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
Alexander Makarov
fa787ce919
Merge pull request #2170 from yiiframework-com-ua/uk_docs
...
Fixing typos, PHPDocs
2013-03-06 16:05:59 -08:00
borales
6d19a150d4
Replacing spaces with tabs, removing dots
...
[ci skip]
2013-03-06 20:59:38 +02:00
borales
2f68a75235
Replacing spaces with tabs
...
[ci skip]
2013-03-06 08:48:59 +02:00
borales
07975cad64
Fixing spaces
...
[ci skip]
2013-03-06 01:06:46 +02:00
borales
a7af2c5371
Fixing some typos, PHPDocs
...
[ci skip]
2013-03-06 00:24:35 +02:00
armab
7b54a509c8
Update framework/validators/CEmailValidator.php
...
If fsockopen error "Connection refused" (error code: 61) is reached, yii hangs with uncatched 500 error code.
Output html code:
<h1>PHP Error [2]</h1>
<p>fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to mail.somedomain.com:25 (Connection refused)</p>
2013-02-23 00:35:53 +02:00
Carsten Brandt
04395c4b40
Added note to emailvalidator checkPort and checkMX
2013-02-15 20:58:16 +01:00
Abdul Malik Ikhsan
6247adaf26
change copyright symbol
2013-01-15 18:38:02 +07:00
Abdul Malik Ikhsan
46c8ef0d9a
update copyright year
...
from 2011 to 2013
2013-01-15 17:28:17 +07:00
slavcopost
b1ac346da5
Add second argument to client validation function
2013-01-11 16:09:21 +02:00
denisarius
154d903f7d
Enhancing extensibility of CActive* class hierarchy: CActiveFinder and CActiveRecord::model factory methods
...
Author: denisarius <denisarius@gmail.com >
2012-12-17 17:26:46 +04:00
Alexander Makarov
b2f152cb69
backwards compatibility
2012-12-01 14:47:19 +04:00
antoncpu
6c8f2bc7c8
indentation corrections
2012-11-29 22:49:59 +02:00
antoncpu
bb61c72a51
refactored to avoid inappropriate arguments passed to trim() or CDateTimeParser::parse()
2012-11-29 22:46:55 +02:00
Alexander Makarov
fdce3eda30
Addition to #217 : handling of objects and boolean values
2012-11-28 22:24:24 +04:00
Alexander Makarov
4fc04645d9
Fixes #217 : Added CTypeValidator::validateValue() and CTypeValidator::$strict, better check for arrays
2012-11-28 02:50:59 +04:00
Carsten Brandt
05a9123aab
more on #1621 make server and client message the same
...
and DRY! :)
2012-11-21 18:39:56 +01:00
Carsten Brandt
2bab3400c2
missing bracket
2012-11-21 18:18:32 +01:00
Carsten Brandt
b921702c59
Attempt to make clientValidation and Servervalidation to behave the same for CCompareValidator
...
issue #1621
2012-11-21 18:00:16 +01:00
Carsten Brandt
8f7931b019
Fix issue #1621
2012-11-21 17:17:10 +01:00
Carsten Brandt
54c71d5913
fixed issue #1621
...
CCompareValidator supported {compareAttribute} in $message only
server-side
2012-11-21 16:12:31 +01:00