Commit Graph

8965 Commits

Author SHA1 Message Date
Klimov Paul
18b0dab360 Fixed yii\console\controllers\AssetController::adjustCssUrl() breaks URL reference specification (url(#id)) 2016-11-29 10:24:39 +02:00
Robert Korulczyk
2d91723934 Add support for creating protocol-relative URLs.
Improve phpdoc for protocol-relative URL creation.
Remove useless `is_string()` check.
2016-11-29 09:53:51 +02:00
Tim Beks
f23dc5aee9 Add attribute to set the openlog $option attribute for SyslogTarget
Fixes issue #13074
close #13075
2016-11-29 00:00:24 +01:00
Fabian Peter Hammerle
46da2df98d yii\db\mysql\Schema::loadColumnSchema sets enumValues attribute incorrectly if enum definition contains comma
(i.e. "enum('a','B','c,D')" -> ['a','B','c','D'] instead of expected ['a','B','c,D'])
2016-11-29 00:21:44 +02:00
SilverFire - Dmitry Naumenko
63e650952b Updated tests for HtmlHelper::textarea() 2016-11-29 00:06:20 +02:00
Brett
10ad620cb4 Adds ability for the user to choose if they want to double encode entities within textareas or not when using ActiveForm. Applies enhancement from #12988. 2016-11-29 00:06:12 +02:00
Elvira Sheina
0545bb6936 Fixed truncateHtml leaving extra tags (#7727) 2016-11-28 20:29:20 +05:00
Alexey Rogachev
e705519c5a Fixes #13071: Help option for commands was not working in modules 2016-11-27 16:14:08 +03:00
Nikola Kovacs
a56c598743 Portability fixes for SchemaBuilder on MSSQL
Changed timestamp mapping to datetime on MSSQL.
Timestamp is a unique number on MSSQL, not a timestamp.

> https://msdn.microsoft.com/en-us/library/ms182776(v=SQL.90).aspx
> The timestamp data type is just an incrementing number and does not
> preserve a date or a time. To record a date or time, use a datetime data type.

separated from #9191
close #9305
2016-11-27 01:11:30 +01:00
Carsten Brandt
a498dedb5c Added documentation about Host header attack (#13073)
* Added documentation about Host header attack

Added info about Host header attack (#13050) to the guide and the Request class.
When we introduce a filter or property to protect against this, these
sections should be updated to link to that option.
2016-11-26 21:57:52 +01:00
Nobuo Kihara
87e51837d9 [ci skip] framework/messages/ja/yii.php updated (#13069)
approved
2016-11-25 08:41:30 +01:00
Carsten Brandt
a837c59182 improved error message for Instance::ensure() when component does not exist (#12967)
fixes #7333
2016-11-22 17:49:55 +01:00
Boudewijn Vahrmeijer
aba42fce4d Squash merge rebased branch nadar-patch-4 2016-11-22 17:01:38 +01:00
Carsten Brandt
b8b3aeeb00 update deprecated phpdoc messages 2016-11-22 16:03:28 +01:00
mrgarry
f5049d8a31 Correct MSIE8 reserved word error (#12722)
In MSIE8 and below, yii.gridView file is not loaded and GridView widget is not working (throws Identifier expected error). The reason is that the variable name 'class' is a reserved word. To correct this, the variable name should be changed into an array key, which eliminates the error.

More info about the causes of error: https://tiffanybbrown.com/2013/09/10/expected-identifier-bug-in-internet-explorer-8/
2016-11-22 15:59:36 +03:00
Herbert Maschke
b58fee7d37 Fixes #13035: Use ArrayHelper::getValue() in SluggableBehavior::getValue() 2016-11-22 13:20:45 +03:00
Boudewijn Vahrmeijer
75162652b7 Update BaseHtml.php 2016-11-20 15:17:15 +01:00
MaximAL
3cf55b8f03 Remove redundant semicolon (#13045)
merci
2016-11-18 17:04:00 +01:00
Alexey Rogachev
6428fab406 Closes #9162: Added support of closures in value for attributes in yii\widgets\DetailView (#13013)
#9162: Added support of closures in `value` for attributes in `yii\widgets\DetailView`
2016-11-18 11:31:40 +03:00
Alexey Rogachev
ea251e24ba Closes #7420: Attributes for prompt generated with renderSelectOptions of \yii\helpers\Html helper 2016-11-17 16:43:19 +02:00
Evgeniy Tkachenko
bd9e68eb0a Optimize imports (#13033) 2016-11-17 17:12:56 +03:00
Carsten Brandt
059a80b47f renamed Cache::$ttl to Cache::$defaultDuration
better naming as discussed in #12990
2016-11-15 23:54:12 +01:00
Evgeniy Tkachenko
3a6fbad561 phpDoc: Fix example for ActiveRelationTrait::via() (#13008) [skip ci] 2016-11-15 13:30:04 +03:00
Serge Postrash
aca6ea9290 Fix incorrect return type in phpdocs [skip ci]
Internally used `setValues()`, `addValues()` methods return array
2016-11-15 02:46:36 +03:00
Carsten Brandt
3913e6ebcf fixed changelog 2016-11-15 00:26:53 +01:00
SDKiller
9a1c168939 Updates after more PR reviews (related #6809) 2016-11-14 23:53:09 +01:00
SDKiller
556e9cf99b Updates after PR review (related #6809) 2016-11-14 23:53:09 +01:00
SDKiller
8df1017f42 Default cache ttl (duration) property (fixes #6809) 2016-11-14 23:53:09 +01:00
Klimov Paul
1157657cab Fixed incorrect order of migrations history in case yii\console\controllers\MigrateController::$migrationNamespaces is in use 2016-11-14 14:24:53 +02:00
Boudewijn Vahrmeijer
bfabb1e2b2 Update ManagerInterface.php 2016-11-13 17:29:36 +01:00
SilverFire - Dmitry Naumenko
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
SilverFire - Dmitry Naumenko
14b4f52e44 Updated CHANGELOG 2016-11-13 18:02:54 +02:00
Anton Kozlov
20a411d8ab Fixed #12822: Fixed datetime creation from microseconds, added tests to \i18n\Formatter::asTimestamp 2016-11-13 18:02:54 +02:00
Dmitry Naumenko
66e7e945a8 Merge pull request #12983 from rob006/doc-fixes
Phpdoc fixes
2016-11-13 17:48:01 +02:00
Robert Korulczyk
9de80810f2 Merge branch 'doc-fixes' of github.com:rob006/yii2-dev into doc-fixes 2016-11-13 15:37:00 +01:00
Robert Korulczyk
1a70f60332 Merge master into doc-fixes
Conflicts:
	framework/web/AssetManager.php
2016-11-13 15:35:18 +01:00
Robert Korulczyk
9cb7125921 @return bool in ErrorHandler::handleError() 2016-11-13 15:27:23 +01:00
Alexander Makarov
324b38d504 #12976: improved phpdoc wording 2016-11-13 17:15:02 +03:00
Robert Korulczyk
7a3a342127 Fix errors reported by apidoc extension. (#12986) 2016-11-13 14:51:21 +01:00
Robert Korulczyk
450eefaa50 Some phpdoc fixes from scrutinizer. 2016-11-12 22:11:30 +01:00
Robert Korulczyk
cf0952406d Cosmetic changes in console controller. 2016-11-12 21:35:19 +01:00
Dmitry Naumenko
4b1f17db8f Merge pull request #12975 from evgen-d/master
Migrations order fix
2016-11-12 18:18:00 +02:00
SilverFire - Dmitry Naumenko
35ce3ba611 Docs updated
Closes #11747
2016-11-12 18:04:23 +02:00
SilverFire - Dmitry Naumenko
6a4ea892c3 Added type mapping for varbinary data type in MySQL DBMS
Closes #11756
2016-11-12 17:34:20 +02:00
evgen
5c3cdd792b fix code style 2016-11-12 18:15:27 +03:00
evgen
3d3d69e3a8 returned back orderBy() 2016-11-12 18:06:02 +03:00
Boudewijn Vahrmeijer
95f2c82009 Fixed the cryptic unstructured doc block (#12978) [skip ci] 2016-11-12 17:05:13 +03:00
SilverFire - Dmitry Naumenko
66dec188d5 Fixed changelog 2016-11-12 15:49:35 +02:00
SilverFire - Dmitry Naumenko
23790272dc Changed data column type from text to blob to handle null-byte (\0) in serialized RBAC rule properly
Closes #12681
2016-11-12 15:46:14 +02:00
evgen
50062d0b9f some change 2016-11-12 15:30:46 +03:00