Bug #78953 [Opn->Fbk]: filter.default directive not working. Always is set to unsafe_raw

From: Date: Fri, 08 Jan 2021 16:46:06 +0000
Subject: Bug #78953 [Opn->Fbk]: filter.default directive not working. Always is set to unsafe_raw
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231454@lists.php.net to get a copy of this message
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:

Hmm, I wonder whether that php.ini was actually the one used by
PHP.  Please check phpinfo() for whether that is the case.


Previous Comments:
------------------------------------------------------------------------
[2019-12-13 14:12:02] cmb@php.net

Thanks!

------------------------------------------------------------------------
[2019-12-13 13:05:57] drtechno at mail dot com

Installed from UBUNTU18.04 lts distribution channel on a new server. Upgraded versions seemed not
effected (tested on an upgraded machine vs. this fresh install). I don't know if other debain
versions are effected. Also, for a note, there is something wrong with phpmyadmin on the new
computer's install too I haven't I identified, but it could be a bad compiling from PHP
itself.

Ubuntu is one of the common operating systems used on the web as the web server and is the popular
replacement for IIS in the Azure community. Approximately 30% of the web servers are running Ubuntu.

------------------------------------------------------------------------
[2019-12-12 13:50:34] cmb@php.net

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?

------------------------------------------------------------------------
[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)

« previous php.bugs (#231454) next »