Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthortheis
     
    Hi!

    In a template I have the following code:
    <?php
    $s = $arr[0];
    ?>

    (I hope one can reproduce it with it ...)
    I got the security error "You can't use the following member variables within template: $arr".
    I guess the bug is in PHPAnalyzer.php, function handleSimpleToken.
    Around line 286 it reads:

    case ']'
    $this->useMemberVar(false);
    break;

    It does not test if $this->currentVar !== false as in other places so I will end with the member "$arr" for object "0".


    Best regards

    Christoph
    • CommentAuthorannyphp
     
    Free and open source PHP Bug Tracking System Projects. These Projects build a bug tracking system so that track the bug of your site always.
    You may check :http://www.phpkode.com/projects/category/php-bug-tracking-system/
    • CommentAuthorpogeybait4883
     

    how are you declaring the $arr variable in your controller? Show the code please.