Vulny-Code-Static-Analysis/vulns/preg-replace-eval.php

8 lines
182 B
PHP

<?php
// ruleid: preg-replace-eval
preg_replace($user_input_pattern, $replacement, $string);
// ok: preg-replace-eval
preg_replace("/some_regexp/", "replacement", $string_before);