diff options
author | swiergot <swiergot> | 2006-08-22 16:18:28 +0200 |
---|---|---|
committer | swiergot <swiergot> | 2006-08-22 16:18:28 +0200 |
commit | dce2f7044384c5a94a5c361e8cb715fa00676ae4 (patch) | |
tree | da528b7702664a21f628d5358279f8353ea355f4 /web/html/pkgsubmit.php | |
parent | 6cca148648d31fed4827fc3b5a5e3f841e4e82a3 (diff) | |
download | aur-dce2f7044384c5a94a5c361e8cb715fa00676ae4.tar.gz aur-dce2f7044384c5a94a5c361e8cb715fa00676ae4.tar.xz |
Applied license patch from dsa (closes #4085).
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 9ae74c7d..52e23aad 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -396,7 +396,8 @@ if ($_COOKIE["AURSID"]) { $q.="Version='".mysql_escape_string($new_pkgbuild['pkgver'])."-". mysql_escape_string($new_pkgbuild['pkgrel'])."',"; $q.="CategoryID=".mysql_escape_string($_REQUEST['category']).", "; - $q.="Description='".mysql_escape_string($new_pkgbuild['pkgdesc'])."', "; + $q.="License='".mysql_escape_string($new_pkgbuild['license'])."', "; + $q.="Description='".mysql_escape_string($new_pkgbuild['pkgdesc'])."', "; $q.="URL='".mysql_escape_string($new_pkgbuild['url'])."', "; $q.="LocationID=2, "; if (account_from_sid($_COOKIE["AURSID"]) == "Trusted User" || account_from_sid($_COOKIE["AURSID"]) == "Developer") { @@ -460,13 +461,14 @@ if ($_COOKIE["AURSID"]) { # this is a brand new package # $q = "INSERT INTO Packages "; - $q.= " (Name, Version, CategoryID, Description, URL, LocationID, "; + $q.= " (Name, License, Version, CategoryID, Description, URL, LocationID, "; if (account_from_sid($_COOKIE["AURSID"]) == "Trusted User" || account_from_sid($_COOKIE["AURSID"]) == "Developer") { $q.= "Safe, VerifiedBy,"; } $q.= " SubmittedTS, SubmitterUID, MaintainerUID, FSPath, URLPath) "; $q.= "VALUES ('"; $q.= mysql_escape_string($new_pkgbuild['pkgname'])."', '"; + $q.= mysql_escape_string($new_pkgbuild['license'])."', '"; $q.= mysql_escape_string($new_pkgbuild['pkgver'])."-". mysql_escape_string($new_pkgbuild['pkgrel'])."', "; $q.= mysql_escape_string($_REQUEST['category']).", '"; |