Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix pecl security bug onto the test script
  • Loading branch information
Daniel Marzini committed May 12, 2020
1 parent 01042e0 commit 545e058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test.php
Expand Up @@ -49,7 +49,9 @@

<?php
if ( ! empty( $_POST['url'] ) )
$url = filter_var( $_POST['url'], FILTER_SANITIZE_URL );
if (substr($_POST['url'], 0, 4) == "http") {
$url = filter_var( $_POST['url'], FILTER_SANITIZE_URL );
}
else
$url = '';

Expand Down

1 comment on commit 545e058

@danielmarzini
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Credit for reporting: Julian Horoszkiewicz (ATOS CERT)

Please sign in to comment.