From d428da47806217f5336bfa36adf0f321d243e37b Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 17 Jan 2014 10:36:32 +0100 Subject: Strip whitespace from .AURINFO lines Indentation can be useful if one wants to structure an .AURINFO file. Remove leading and trailing whitespace from each line before parsing. Signed-off-by: Lukas Fleischer --- web/html/pkgsubmit.php | 1 + 1 file changed, 1 insertion(+) (limited to 'web/html') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 49fb1b2..7ae0c1c 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -263,6 +263,7 @@ if ($uid): unset($pkg_version); $depends = array(); foreach (explode("\n", $srcinfo_raw) as $line) { + $line = trim($line); if (empty($line) || $line[0] == '#') { continue; } -- cgit v1.2.3-70-g09d2