summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-02-02 17:18:27 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-02-02 17:18:27 +0100
commite3bde91f6d1df25f87b60b0f0a4875804d436b61 (patch)
tree37165806e74872c91743281c05ce8e4d06a8dad1 /web
parent8e32767c70e5fc86b9d8c7b0d74971f9c201d897 (diff)
downloadaur-e3bde91f6d1df25f87b60b0f0a4875804d436b61.tar.gz
aur-e3bde91f6d1df25f87b60b0f0a4875804d436b61.tar.xz
Minor variable parser bug fix (cf. commits 492c8c66, 7a58e99e).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/html/pkgsubmit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index a13a6746..2b11b7ba 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 = '';