[aur-dev] [PATCH] pkg_details.php: Add missing translatable string
Signed-off-by: canyonknight canyonkni...@gmail.com --- web/template/pkg_details.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index b5d8a9f..0973448 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -137,7 +137,7 @@ if ($row[SubmitterUID]): td?= htmlspecialchars($submitter) ?/td ?php endif; ? ?php else: ? - tdNone/td + td?= __('None') ?/td ?php endif; ? /tr tr @@ -155,7 +155,7 @@ if ($row[MaintainerUID]): td?= htmlspecialchars($maintainer) ?/td ?php endif; ? ?php else: ? - tdNone/td + td?= __('None') ?/td ?php endif; ? /tr tr -- 1.8.1.1
[aur-dev] [PATCH] aur.inc.php: Fix PHP undefined index notice for AURSID
Occurs in the rare situation where a logged out user tries to POST a CSRF token. Signed-off-by: canyonknight canyonkni...@gmail.com --- web/lib/aur.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index 387d81d..e02c835 100644 --- a/web/lib/aur.inc.php +++ b/web/lib/aur.inc.php @@ -94,7 +94,7 @@ function check_sid($dbh=NULL) { * @return bool True if the CSRF token is the same as the cookie SID, otherwise false */ function check_token() { - if (isset($_POST['token'])) { + if (isset($_POST['token']) isset($_COOKIE['AURSID'])) { return ($_POST['token'] == $_COOKIE['AURSID']); } else { return false; -- 1.8.1.1