From e3bde91f6d1df25f87b60b0f0a4875804d436b61 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 2 Feb 2011 17:18:27 +0100 Subject: Minor variable parser bug fix (cf. commits 492c8c66, 7a58e99e). Signed-off-by: Lukas Fleischer --- web/html/pkgsubmit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/html/pkgsubmit.php') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index a13a674..2b11b7b 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -185,7 +185,7 @@ if ($_COOKIE["AURSID"]): $len = strlen($regs[0][0]); if (isset($new_pkgbuild[$var])) { - $replacement = explode(" ", $new_pkgbuild[$var], 2); + $replacement = substr($new_pkgbuild[$var], strpos($new_pkgbuild[$var], " ")); } else { $replacement = ''; -- cgit v1.2.3-54-g00ecf