mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
committed simo's patch for bug 2599 (leaving quotes in pkgdesc)
This commit is contained in:
parent
6496ff7a2c
commit
a5d253d66b
1 changed files with 7 additions and 3 deletions
|
@ -233,10 +233,14 @@ if ($_COOKIE["AURSID"]) {
|
|||
$lparts = explode("=", $line, 2);
|
||||
if (count($lparts) == 2) {
|
||||
# this is a variable/value pair, strip out
|
||||
# array parens and any quoting
|
||||
# array parens and any quoting, except in pkgdesc
|
||||
#
|
||||
$pkgbuild[$lparts[0]] = str_replace(array("(",")","\"","'"), "",
|
||||
$lparts[1]);
|
||||
if ($lparts[0]=="pkgdesc") {
|
||||
$pkgbuild[$lparts[0]] = trim($lparts[1], "\"\' ");
|
||||
} else {
|
||||
$pkgbuild[$lparts[0]] = str_replace(array("(",")","\"","'"), "",
|
||||
$lparts[1]);
|
||||
}
|
||||
} else {
|
||||
# either a comment, blank line, continued line, or build function
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue