Skip to content

Commit 9b09581

Browse files
authored
filter/constants.xml Fix typo, add a description (#4854)
1 parent 0ece873 commit 9b09581

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

reference/filter/constants.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
</term>
136136
<listitem>
137137
<simpara>
138-
This flags wraps scalar inputs into a one element <type>array</type>
138+
This flag wraps scalar inputs into a one element <type>array</type>
139139
for filters which operate on arrays.
140140
</simpara>
141141
</listitem>
@@ -264,18 +264,21 @@
264264
<listitem>
265265
<simpara>
266266
Returns &true; for <literal>"1"</literal>,
267-
<literal>"true"</literal>,
267+
<literal>1</literal> including binary, octal and hexadecimal notations, <literal>1.0</literal>,
268+
<literal>"true"</literal>, <literal>true</literal>,
268269
<literal>"on"</literal>,
269270
and <literal>"yes"</literal>.
270271
</simpara>
271272
<simpara>
272273
Returns &false; for <literal>"0"</literal>,
273-
<literal>"false"</literal>,
274+
<literal>0</literal> including binary, octal and hexadecimal notations, <literal>0.0</literal>,
275+
<literal>"false"</literal>, <literal>false</literal>,
274276
<literal>"off"</literal>,
275277
<literal>"no"</literal>, and
276278
<literal>""</literal>.
277279
</simpara>
278280
<simpara>
281+
String values are compared case-insensitively.
279282
The return value for non-boolean values depends on the
280283
<constant>FILTER_NULL_ON_FAILURE</constant>.
281284
If it is set, &null; is returned, otherwise &false; is returned.
@@ -499,7 +502,7 @@
499502
</term>
500503
<listitem>
501504
<simpara>
502-
Validates whether the <acronym>URL</acronym> name is valid according to
505+
Validates whether the <acronym>URL</acronym> is valid according to
503506
<link xlink:href="&url.rfc;2396">RFC 2396</link>.
504507
</simpara>
505508
<variablelist xml:id="filter.constants.validation.url.options">
@@ -949,6 +952,9 @@
949952
<member><literal>&amp;</literal></member>
950953
</simplelist>
951954
and characters with an ASCII value less than 32.
955+
Unlike the <constant>FILTER_SANITIZE_FULL_SPECIAL_CHARS</constant> filter, the
956+
<constant>FILTER_SANITIZE_SPECIAL_CHARS</constant> filter ignores the
957+
<constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant> flag.
952958
</para>
953959
<simpara>
954960
Optionally it can strip specified characters if used together with

0 commit comments

Comments
 (0)