From 0a79696d4989d18bf23532c9e6c5d1a4aaaddd19 Mon Sep 17 00:00:00 2001 From: bernie Date: Sat, 29 Aug 2009 19:55:41 +0200 Subject: [PATCH] Edit page MicrosoftTactics --- MicrosoftTactics | 4 ++-- sys/info | 6 +++++- sys/macros/CgiVar.py | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/MicrosoftTactics b/MicrosoftTactics index b91980c..f801c6c 100644 --- a/MicrosoftTactics +++ b/MicrosoftTactics @@ -5,7 +5,7 @@ Why does Microsoft deserve special casing among all companies producing propriet This is a collection of a variety of strategies attempted by Microsoft against an extremely resilient competitor that couldn't be simply brought -or driven to bankruptcy. +or driven out of business in the conventional ways. steve_ballmer_bill_gates_i_wish_i_knew_how_to_quit_you.jpg @@ -86,7 +86,7 @@ steve_ballmer_bill_gates_i_wish_i_knew_how_to_quit_you.jpg * The [[http://www.catb.org/~esr/halloween/ | Halloween documents]] (1998-2004) - * Microsoft claims that [[http://news.zdnet.com/2100-3513_22-152099.html | OSS violates 235 (unspecified) patents]] + * Microsoft claims that [[http://news.zdnet.com/2100-3513_22-152099.html | OSS violates 235 (unspecified) patents]] (FUD) == Help wanted! == diff --git a/sys/info b/sys/info index abc4bbc..735e0ef 100644 --- a/sys/info +++ b/sys/info @@ -1 +1,5 @@ -|| HTTP_IF_MODIFIED_SINCE || <> || +|| REMOTE_USER || <> || +|| REMOTE_HOST || <> || +|| REMOTE_ADDR || <> || +|| QUERY_STRING || <> || +|| HTTP_IF_MODIFIED_SINCE || <> || diff --git a/sys/macros/CgiVar.py b/sys/macros/CgiVar.py index c2ba707..b29f5d4 100644 --- a/sys/macros/CgiVar.py +++ b/sys/macros/CgiVar.py @@ -1,6 +1,10 @@ #acl bernie:read,write All:read +#FIXME: couldn't we just return any env variable? +# Would there be any security issues? def _macro_CgiVar(*args, **kvargs): + if args[1].startswith('HTTP_'): + return os.environ.get(args[1], '') return { 'REMOTE_USER': remote_user(), 'REMOTE_HOST': get_hostname(remote_host()), -- 2.25.1