Skip to content

False positive for "ExitOrDie" rule #82

@aik099

Description

@aik099

I'm getting error:

2) core/units/related_searches/related_searches_config.php on line 15
Avoid the use of `exit` or `die` with strings as it could lead to injection issues (direct output)
> defined('FULL_PATH') or die('restricted access!');
For more information execute 'psecio-parse rules ExitOrDie'

when code like this is encountered:

defined('FULL_PATH') or die('restricted access!');

In above code argument to die statement is constant string and can't be used to inject anything.

Proposing not to report issue in that case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions