public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To: Mark Kuchel <mark@kuchel.net>
Cc: <gnats-devel@sourceware.cygnus.com>
Subject: Re: PR 375 - Point 1
Date: Sat, 03 Feb 2001 04:47:00 -0000	[thread overview]
Message-ID: <Pine.BSF.4.33.0102031342030.24609-100000@deneb.dbai.tuwien.ac.at> (raw)
In-Reply-To: <01011015420608.01014@bombers.kuchel.net>

On Wed, 10 Jan 2001, Mark Kuchel wrote:
>> * The login page makes no mention of needing to have cookies enabled;
> The problem here under lynx is that it doesn't use javascript.  For
> lynx and other browsers in that class, adding in a simple
> <noscript>...</noscript> section telling them that they need cookies
> turned on to work.  This also works for browsers such as netscape and
> mozilla when you turn javascript off in them.
> [...]
> The patch was tested with netscape 4.75, mozilla M18, lynx 2.8.4 and
> konqueror from kdebase 2.0.6 from mandrake.

Thanks!

I had fixed this in a somewhat different way for the modified version we
used for gcc.gnu.org, but I agree that using <noscript> is a much better
idea, so I merged our two patches and installed the following into the
GNATS repository (and on gcc.gnu.org as well, so that we have more
extensive testing).

Sorry for the delay, but now I'm nearly done with the gnatsweb patch
backlog. Send more patches! :-)

Gerald


2001-02-03  Mark Kuchel <mark@kuchel.net>
            Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>

	* gnatsweb.pl (login_page_javascript): Properly warn about cookies
	being required, both if Javascript is enabled and if it is disabled.

Index: gnatsweb.pl
===================================================================
RCS file: /cvs/gnats/gnats/contrib/gnatsweb/gnatsweb.pl,v
retrieving revision 2.21
diff -u -3 -p -r2.21 gnatsweb.pl
--- gnatsweb.pl	2001/01/22 15:29:03	2.21
+++ gnatsweb.pl	2001/02/03 12:41:53
@@ -2815,13 +2815,21 @@ val = getCookie("gnatsweb-test-cookie");
 delCookie("gnatsweb-test-cookie");
 if (val == null) {
     document.write("<h2>Warning: your browser is not accepting cookies</h2>"
-        + "Gnatsweb requires cookies to keep track of your login and other "
-        + "information.  Please enable cookies before pressing the "
-        + "<tt>login</tt> button.");
+        ."<p>Unfortunately, Gnatsweb requires cookies to keep track of your "
+        ."login and other information. "
+        ."Please enable cookies before logging in.</p>");
 }

 //-->
 </SCRIPT>
+<noscript>
+<p>(Due to the fact that your browser does not support Javascript,
+there is no way of telling whether it can accept cookies.)
+
+Unfortunately, Gnatsweb requires cookies to keep track of your"
+login and other information.
+Please enable cookies before logging in.</p>
+</noscript>
   };
 }


      reply	other threads:[~2001-02-03  4:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-09 20:42 Mark Kuchel
2001-02-03  4:47 ` Gerald Pfeifer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.BSF.4.33.0102031342030.24609-100000@deneb.dbai.tuwien.ac.at \
    --to=pfeifer@dbai.tuwien.ac.at \
    --cc=gnats-devel@sourceware.cygnus.com \
    --cc=mark@kuchel.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).