Commit 7a58e99e authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Improve PKGBUILD variable parser correctness (cf. commit 492c8c66).



Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 7f5af61c
......@@ -187,15 +187,12 @@ if ($_COOKIE["AURSID"]):
if (isset($new_pkgbuild[$var])) {
$replacement = explode(" ", $new_pkgbuild[$var], 2);
}
elseif (isset($pkgbuild[$var]) && $var != $k) {
$replacement = explode(" ", $pkgbuild[$var], 2);
}
else {
$replacement = '';
}
$v = substr_replace($v, $replacement, $pos, $len);
$offset += strlen($replacement);
$offset = $pos + strlen($replacement);
}
$new_pkgbuild[$k] = $v;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment