summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index bd23354..df9f931 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -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;
}