Skip to content
This repository was archived by the owner on Mar 14, 2018. It is now read-only.

Commit 50927d0

Browse files
committed
Enhanced core-validators docs
Closes yiisoft#13485
1 parent 1b06898 commit 50927d0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/guide-ru/tutorial-core-validators.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,3 +623,7 @@ IPv4 адрес `192.168.10.128` также разрешен, так как на
623623
По умолчанию - `false`. Учтите, что для того, чтобы IDN валидация работала корректно, вы должны установить `intl`
624624
PHP расширение, иначе будет выброшено исключение.
625625

626+
> Note: Валидатор проверяет, что протокол и хост в URL являются корректными. Валидатор НЕ проверяет другие части URL
627+
и НЕ предназначен для защиты от XSS или любых других видов атак. Обратитесь к секции
628+
[Лучшие практики безопасности](security-best-practices.md) чтобы узнать больше о том, как предтвращать известные угрозы
629+
при разработке приложений.

docs/guide/tutorial-core-validators.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,3 +677,6 @@ This validator checks if the input value is a valid URL.
677677
Defaults to `false`. Note that in order to use IDN validation you have to install and enable the `intl` PHP
678678
extension, otherwise an exception would be thrown.
679679

680+
> Note: The validator checks that URL scheme and host part is correct. It does NOT check the remaining parts of a URL
681+
and is NOT designed to protect against XSS or any other attacks. See [Security best practices](security-best-practices.md)
682+
article to learn more about threats prevention when developing applications.

0 commit comments

Comments
 (0)