Changeset 7730 for trunk/library


Ignore:
Timestamp:
01/11/13 08:48:41 (11 years ago)
Author:
marcieli
Message:

Ticket #3236 - Correcoes de seguranca com base no segundo relatorio emitido.

Location:
trunk/library
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/library/PEAR/PEAR/Command/Registry.php

    r7681 r7730  
    985985                        $info[$infoindex] .= "$type $name"; 
    986986                        if (isset($package['uri'])) { 
    987                             $info[$infoindex] .= "\n  Download URI: $package[uri]"; 
     987                            $info[$infoindex] .= "\n  Download URI: {$package['uri']}"; 
    988988                            continue; 
    989989                        } 
  • trunk/library/PEAR/PEAR/PackageFile/Generator/v1.php

    r7681 r7730  
    202202        $ret .= "<!DOCTYPE package SYSTEM \"http://pear.php.net/dtd/package-1.0\">\n"; 
    203203        $ret .= "<package version=\"1.0\" packagerversion=\"1.9.4\">\n" . 
    204 " <name>$pkginfo[package]</name>"; 
     204" <name>{$pkginfo['package']}</name>"; 
    205205        if (isset($pkginfo['extends'])) { 
    206206            $ret .= "\n<extends>{$pkginfo['extends']}</extends>"; 
  • trunk/library/PEAR/PEAR/PackageFile/v2.php

    r7673 r7730  
    329329        $mymaintainers = $this->getMaintainers(); 
    330330        $yourmaintainers = $pf1->getMaintainers(); 
    331         $yourmaintainers_count = count($yourmaintainers); 
    332         for ($i1 = 0; $i1 < $yourmaintainers_count; ++$i1) { 
     331        for ($i1 = 0; $i1 < count($yourmaintainers); ++$i1) { 
    333332            $reset = false; 
    334             $mymaintainers_count = count($mymaintainers); 
    335             for ($i2 = 0; $i2 < $mymaintainers_count; ++$i2) { 
     333            for ($i2 = 0; $i2 < count($mymaintainers); ++$i2) { 
    336334                if ($mymaintainers[$i2]['handle'] == $yourmaintainers[$i1]['handle']) { 
    337335                    if ($mymaintainers[$i2]['role'] != $yourmaintainers[$i1]['role']) { 
  • trunk/library/PEAR/PEAR/RunTest.php

    r7655 r7730  
    656656            $data .= " 
    657657---- EXPECTED RETURN 
    658 $section_text[RETURNS] 
     658{$section_text['RETURNS']} 
    659659---- ACTUAL RETURN 
    660660$return_value 
  • trunk/library/PEAR/scripts/pearcmd.php

    r5146 r7730  
    337337        } 
    338338        $put .= 
    339             "Usage: $progname [options] command [command-options] <parameters>\n". 
     339            "Usage: $progname ['options'] command ['command-options'] <parameters>\n". 
    340340            "Type \"$progname help options\" to list all options.\n". 
    341341            "Type \"$progname help shortcuts\" to list all command shortcuts.\n". 
     
    385385    } elseif ($help = PEAR_Command::getHelp($command)) { 
    386386        if (is_string($help)) { 
    387             return "$progname $command [options] $help\n"; 
     387            return "$progname $command ['options'] $help\n"; 
    388388        } 
    389389 
     
    392392        } 
    393393 
    394         return "$progname $command [options] $help[0]\n$help[1]"; 
     394        return "$progname $command ['options'] $help[0]\n$help[1]"; 
    395395    } 
    396396 
  • trunk/library/csstidy/class.csstidy_optimise.php

    r7712 r7730  
    302302            $color_tmp = substr($color,4,strlen($color)-5); 
    303303            $color_tmp = explode(',',$color_tmp); 
    304             for ( $i = 0; $i < count($color_tmp); ++$i ) 
     304            $color_tmp_count = count($color_tmp); 
     305            for ( $i = 0; $i < $color_tmp_count; ++$i ) 
    305306            { 
    306307                $color_tmp[$i] = trim ($color_tmp[$i]); 
Note: See TracChangeset for help on using the changeset viewer.