diff options
author | pjmattal <pjmattal> | 2005-05-04 12:51:55 +0000 |
---|---|---|
committer | pjmattal <pjmattal> | 2005-05-04 12:51:55 +0000 |
commit | a5d253d66bd4e934763c2764bfb0898a8de4d838 (patch) | |
tree | 7b17b7783d0c1eee7db9ea7007259cc0bb739f4e /web/html/pkgsubmit.php | |
parent | 6496ff7a2ca14809128dd2c38285df47ff4cc0e6 (diff) |
committed simo's patch for bug 2599 (leaving quotes in pkgdesc)
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 5c9f266..6accce6 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -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 # |