summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-01-17 10:36:32 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-01-17 11:35:04 +0100
commitd428da47806217f5336bfa36adf0f321d243e37b (patch)
tree6591a355560ac15fce8fb7314b896bc872c809c5 /web/html
parentb0c55ae5c6698f26b6671f248b5bc87eb9b93cdf (diff)
downloadaurweb-d428da47806217f5336bfa36adf0f321d243e37b.tar.xz
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/pkgsubmit.php1
1 files changed, 1 insertions, 0 deletions
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;
}