Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7.3.0 + Taint 2.0.5 + Arrays #70

Open
craigfrancis opened this issue Jan 5, 2019 · 0 comments
Open

PHP 7.3.0 + Taint 2.0.5 + Arrays #70

craigfrancis opened this issue Jan 5, 2019 · 0 comments

Comments

@craigfrancis
Copy link
Contributor

Something isn't right with arrays:

<?php

$t = [];
$t['html'] = '
	<ul>';

foreach (['a', 'b', 'c'] as $area) {
	$t['html'] .= '
		<li>' . htmlentities($area) . '</li>';
}

$t['html'] .= '
	</ul>';

echo $t['html'];

?>

Produces the following output:

	<ul>
		<li>a</li>
		<li>b</li>
		<li>c</li>
		<li>

I'm not sure where the extra <li> comes from.

And while most of the time is produces the above, sometimes (often the first time the script is run after saving) it produces:

	<ul>
		<li>a</li>
		<li>b</li>
		<li>c</li></li>

I've not had it return the </ul>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant