reference/filter/filters.xml
372e1b4d392a909073c06aba5975d7bedbf0b725
...
...
@@ -148,6 +148,7 @@
148
148
<constant>FILTER_FLAG_IPV6</constant>,
149
149
<constant>FILTER_FLAG_NO_PRIV_RANGE</constant>,
150
150
<constant>FILTER_FLAG_NO_RES_RANGE</constant>,
151
+
<constant>FILTER_FLAG_GLOBAL_RANGE</constant>,
151
152
<constant>FILTER_NULL_ON_FAILURE</constant>
152
153
</entry>
153
154
<entry>
...
...
@@ -351,7 +352,7 @@
351
352
<entry><constant>FILTER_SANITIZE_FULL_SPECIAL_CHARS</constant></entry>
352
353
<entry>"full_special_chars"</entry>
353
354
<entry>
354
-
<constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant>,
355
+
<constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant>
355
356
</entry>
356
357
<entry>
357
358
Equivalent to calling <function>htmlspecialchars</function> with <constant>ENT_QUOTES</constant> set. Encoding quotes can
...
...
@@ -614,7 +615,7 @@ filter.default_flags = 0
614
615
<entry>
615
616
<constant>FILTER_SANITIZE_ENCODED</constant>,
616
617
<constant>FILTER_SANITIZE_STRING</constant>,
617
-
<constant>FILTER_SANITIZE_RAW</constant>
618
+
<constant>FILTER_UNSAFE_RAW</constant>
618
619
</entry>
619
620
<entry>
620
621
Encodes all characters with a numerical value &lt;32.
...
...
@@ -626,7 +627,7 @@ filter.default_flags = 0
626
627
<constant>FILTER_SANITIZE_ENCODED</constant>,
627
628
<constant>FILTER_SANITIZE_SPECIAL_CHARS</constant>,
628
629
<constant>FILTER_SANITIZE_STRING</constant>,
629
-
<constant>FILTER_SANITIZE_RAW</constant>
630
+
<constant>FILTER_UNSAFE_RAW</constant>
630
631
</entry>
631
632
<entry>
632
633
Encodes all characters with a numerical value &gt;127.
...
...
@@ -636,7 +637,7 @@ filter.default_flags = 0
636
637
<entry><constant>FILTER_FLAG_ENCODE_AMP</constant></entry>
637
638
<entry>
638
639
<constant>FILTER_SANITIZE_STRING</constant>,
639
-
<constant>FILTER_SANITIZE_RAW</constant>
640
+
<constant>FILTER_UNSAFE_RAW</constant>
640
641
</entry>
641
642
<entry>
642
643
Encodes ampersands (<literal>&amp;</literal>).
...
...
@@ -740,6 +741,19 @@ filter.default_flags = 0
740
741
</entry>
741
742
</row>
742
743
<row>
744
+
<entry><constant>FILTER_FLAG_GLOBAL_RANGE</constant></entry>
745
+
<entry>
746
+
<constant>FILTER_VALIDATE_IP</constant>
747
+
</entry>
748
+
<entry>
749
+
<para>
750
+
Fails validation for non global IPv4/IPv6 ranges as found in
751
+
<link xlink:href="&url.rfc;6890">RFC 6890</link> with the
752
+
<literal>Global</literal> attribute being <literal>False</literal>.
753
+
</para>
754
+
</entry>
755
+
</row>
756
+
<row>
743
757
<entry><constant>FILTER_FLAG_SCHEME_REQUIRED</constant></entry>
744
758
<entry>
745
759
<constant>FILTER_VALIDATE_URL</constant>
...
...
@@ -788,7 +802,8 @@ filter.default_flags = 0
788
802
<entry>
789
803
</entry>
790
804
<entry>
791
-
Requires the value to be an array.
805
+
Requires the value to be an array. Filter given will be applied to each
806
+
scalar entry of the array.
792
807
</entry>
793
808
</row>
794
809
<row>
...
...
@@ -818,6 +833,13 @@ filter.default_flags = 0
818
833
</thead>
819
834
<tbody>
820
835
<row>
836
+
<entry>8.2.0</entry>
837
+
<entry>
838
+
<constant>FILTER_FLAG_GLOBAL_RANGE</constant> as a flag to
839
+
<constant>FILTER_VALIDATE_IP</constant> has been added.
840
+
</entry>
841
+
</row>
842
+
<row>
821
843
<entry>7.3.0</entry>
822
844
<entry>
823
845
The explicit usage of <constant>FILTER_FLAG_SCHEME_REQUIRED</constant>
824
846