utf8: don't allow NUL in decoded strings.
[ccan] / web / staticmoduleinfo.php
index 7f388c2cb1d8d9cca2e6c87907bbec060a7ce253..ac4ac68f1bb19226ee184adfe9af73dd1e7420b8 100644 (file)
@@ -63,7 +63,7 @@ if ($extdepends) {
 <h3>External dependencies:</h3>
 <ul class='external-dependencies'>
 <?php
-       foreach (split("\n", $extdepends) as $dep) {
+       foreach (explode("\n", $extdepends) as $dep) {
                $fields=preg_split("/\s+/", $dep);
                echo "<li>" . $fields[0].' ';
                if (count($fields) > 1)