Bug #78953 [Opn->Fbk]: filter.default directive not working. Always is set to unsafe_raw
Edit report at https://bugs.php.net/bug.php?id=78953&edit=1
ID: 78953
Updated by: cmb@php.net
Reported by: drtechno at mail dot com
Summary: filter.default directive not working. Always is set
to unsafe_raw
-Status: Open
+Status: Feedback
Type: Bug
Package: PHP options/info functions
Operating System: Ubuntu 18.04LTS
PHP Version: 7.3.12
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Works here (Windows/CLI) as expected. Does this only happen with
some particular SAPI (e.g. PHP-FPM)? If so, which one would that
be?
Previous Comments:
------------------------------------------------------------------------
[2019-12-12 11:56:35] drtechno at mail dot com
Description:
------------
In this distribution of php, it appears that the default.filter can not be assigned
full_special_chars
Test script:
---------------
<?php
if(ini_get('filter.default')!=='full_special_chars'||ini_get('filter.default_flags')!=='0')
$ff=ini_get('filter.default');
echo $ff."_Filter! should be full_special_chars Error:";
die('Missing and/or incorrect filter.default and/or filter.default_flags directives in
php.ini');
if (isset($_GET["name"])){
Attached in the Patch upload is my php.ini file (that the filter doesn't work)
Expected result:
----------------
The script on the php would execute normally.
Actual result:
--------------
unsafe_raw_Filter! should be full_special_chars Error:Missing and/or incorrect filter.default and/or
filter.default_flags directives in php.ini
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78953&edit=1
Thread (6 messages)