Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #62794, comment 5


Ignore:
Timestamp:
01/09/2025 07:57:13 PM (19 months ago)
Author:
SergeyBiryukov

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62794, comment 5

    initial v1  
    33
    44That's good to note, however values passed via `$_POST` can only ever be a string or an array, per the [https://www.php.net/manual/en/language.variables.external.php#language.variables.determining-type-of PHP manual]:
    5 > HTTP being a text protocol, most, if not all, content that comes in Superglobal arrays, like `$_POST` and `$_GET` will remain as strings. PHP will not try to convert values to a specific type.
     5> HTTP being a text protocol, most, if not all, content that comes in Superglobal arrays, like `$_POST` and `$_GET` will remain as strings. PHP will not try to convert values to a specific type. In the example below, `$_GET["var1"]` will contain the string "null" and `$_GET["var2"]`, the string "123".
     6>
     7> `/index.php?var1=null&var2=123`
    68
    79So I think this is ready to go, I would just add a similar check for `$_POST['log']` for consistency.