From 2b59044751ddbfc641b6f6955215ac38a9430985 Mon Sep 17 00:00:00 2001 From: Tom MacLean Date: Fri, 16 Nov 2012 21:52:06 -0500 Subject: [PATCH 1/3] modified get_auth.pl used by iphone web app (and possibly Android app) to return 'none' when not authenticated. Zero or null strings cause the error Lieven spotted in the logs. --- web/bin/get_auth.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/bin/get_auth.pl b/web/bin/get_auth.pl index 0274e1d15..5474eabed 100644 --- a/web/bin/get_auth.pl +++ b/web/bin/get_auth.pl @@ -3,4 +3,4 @@ # Authority: anyone -return "$Authorized"; +return (($Authorized)?"$Authorized":'none'); From c3dfd77171e6fb99f0673ac514dda2b786a29413 Mon Sep 17 00:00:00 2001 From: Tom MacLean Date: Fri, 16 Nov 2012 21:57:08 -0500 Subject: [PATCH 2/3] Revert "modified get_auth.pl used by iphone web app (and possibly Android app) to return 'none' when not authenticated. Zero or null strings cause the error Lieven spotted in the logs." Forgot to create a new branch for my commit. I need sleep it seems. This reverts commit 2b59044751ddbfc641b6f6955215ac38a9430985. --- web/bin/get_auth.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/bin/get_auth.pl b/web/bin/get_auth.pl index 5474eabed..0274e1d15 100644 --- a/web/bin/get_auth.pl +++ b/web/bin/get_auth.pl @@ -3,4 +3,4 @@ # Authority: anyone -return (($Authorized)?"$Authorized":'none'); +return "$Authorized"; From 027fa238d47d150b86766b4ec167a6bca48aec2d Mon Sep 17 00:00:00 2001 From: Tom MacLean Date: Fri, 16 Nov 2012 22:02:36 -0500 Subject: [PATCH 3/3] modified get_auth.pl used by iphone web app (and possibly Android app) to return 'none' when not authenticated. Zero or null strings cause the error Lieven spotted in the logs. --- web/bin/get_auth.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/bin/get_auth.pl b/web/bin/get_auth.pl index 0274e1d15..5474eabed 100644 --- a/web/bin/get_auth.pl +++ b/web/bin/get_auth.pl @@ -3,4 +3,4 @@ # Authority: anyone -return "$Authorized"; +return (($Authorized)?"$Authorized":'none');