committed simo's patch for bug 2599 (leaving quotes in pkgdesc)

This commit is contained in:
pjmattal 2005-05-04 12:51:55 +00:00
parent 6496ff7a2c
commit a5d253d66b

View file

@ -233,10 +233,14 @@ if ($_COOKIE["AURSID"]) {
$lparts = explode("=", $line, 2); $lparts = explode("=", $line, 2);
if (count($lparts) == 2) { if (count($lparts) == 2) {
# this is a variable/value pair, strip out # 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("(",")","\"","'"), "", if ($lparts[0]=="pkgdesc") {
$lparts[1]); $pkgbuild[$lparts[0]] = trim($lparts[1], "\"\' ");
} else {
$pkgbuild[$lparts[0]] = str_replace(array("(",")","\"","'"), "",
$lparts[1]);
}
} else { } else {
# either a comment, blank line, continued line, or build function # either a comment, blank line, continued line, or build function
# #