Skip to content

Commit 0f53fc5

Browse files
author
doonot
committed
Update global-constants-and-functions.rst
The $number variable should be santisised.
1 parent 1883057 commit 0f53fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/core-libraries/global-constants-and-functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ such as debugging and translating content.
2828
``sprintf()``. You can supply additional arguments to replace
2929
placeholders in your string::
3030

31-
__('You have %s unread messages', $number);
31+
__('You have %s unread messages', h($number));
3232

3333
.. note::
3434

0 commit comments

Comments
 (0)