Skip to content

Commit c8467a1

Browse files
authored
Merge pull request #1540 from bangbangda/user-guide-src
Update validation class User Guide
2 parents 2047b5a + 8bf4cf7 commit c8467a1

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

user_guide_src/source/concepts/security.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ OWASP recommendations
3434
CodeIgniter provisions
3535
----------------------
3636

37-
- `HTTP library </incoming/message.html>`_ provides for input field filtering & content metadata
37+
- `HTTP library <../incoming/incomingrequest.html>`_ provides for input field filtering & content metadata
3838
- Form validation library
3939

4040
*********************************************
@@ -57,7 +57,7 @@ CodeIgniter provisions
5757
----------------------
5858

5959
- `Session <../libraries/sessions.html>`_ library
60-
- `HTTP library </incoming/message.html>`_ provides for CSRF validation
60+
- `HTTP library <../incoming/incomingrequest.html>`_ provides for CSRF validation
6161
- Easy to add third party authentication
6262

6363
*****************************
@@ -162,7 +162,7 @@ CodeIgniter provisions
162162
----------------------
163163

164164
- Public folder, with application and system outside
165-
- `HTTP library </incoming/message.html>`_ provides for CSRF validation
165+
- `HTTP library <../incoming/incomingrequest.html>`_ provides for CSRF validation
166166

167167
************************************
168168
A8 Cross Site Request Forgery (CSRF)
@@ -181,7 +181,7 @@ OWASP recommendations
181181
CodeIgniter provisions
182182
----------------------
183183

184-
- `HTTP library </incoming/message.html>`_ provides for CSRF validation
184+
- `HTTP library <../incoming/incomingrequest.html>`_ provides for CSRF validation
185185

186186
**********************************************
187187
A9 Using Components with Known Vulnerabilities
@@ -217,6 +217,5 @@ OWASP recommendations
217217
CodeIgniter provisions
218218
----------------------
219219

220-
- `HTTP library </incoming/message.html>`_ provides for ...
220+
- `HTTP library <../incoming/incomingrequest.html>`_ provides for ...
221221
- `Session <../libraries/sessions.html>`_ library provides flashdata
222-

user_guide_src/source/libraries/validation.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,12 @@ Available Rules
644644

645645
The following is a list of all the native rules that are available to use:
646646

647+
.. note:: Rule is string,there must be no spaces between the parameters, especially the is_unique rule.
648+
there can be no spaces before and after ignore_value.
649+
`is_unique[supplier.name,uuid, $uuid]` is not ok
650+
`is_unique[supplier.name,uuid,$uuid ]` is not ok
651+
`is_unique[supplier.name,uuid,$uuid]` is ok
652+
647653
======================= =========== =============================================================================================== ===================================================
648654
Rule Parameter Description Example
649655
======================= =========== =============================================================================================== ===================================================

user_guide_src/source/models/entities.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ Here's an updated User entity to provide some examples of how this could be used
173173

174174
$this->created_at->setTimezone($timezone);
175175

176-
return $format === true
177-
? $this->created_at
178-
: $this->created_at->format($format);
176+
return $this->created_at->format($format);
179177
}
180178
}
181179

0 commit comments

Comments
 (0)