summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 854436b..357e9c9 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -474,6 +474,11 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) {
function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url = "") {
global $static_output, $g;
+ // Clean up incoming filenames
+ $filename = str_replace(" ", " ", $filename);
+ $filename = str_replace("\n", " ", $filename);
+ $filename = str_replace(" ", " ", $filename);
+
$pkgs = split(" ", $filename);
foreach($pkgs as $filename) {
if (($g['platform'] == "nanobsd") || ($g['platform'] == "embedded")) {
OpenPOWER on IntegriCloud