summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
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/pkgsubmit.php
parentb0c55ae5c6698f26b6671f248b5bc87eb9b93cdf (diff)
downloadaur-d428da47806217f5336bfa36adf0f321d243e37b.tar.gz
aur-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/pkgsubmit.php')
-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 49fb1b28..7ae0c1c2 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;
}