[horde] Browser info in problem report.

Ted Cabeen secabeen at pobox.com
Tue Jan 14 13:53:29 PST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content-Type: text/plain; charset=us-ascii

In message <1042580626.f70a57869e89c at marina.horde.org>, Chuck Hagenbuch writes:
>Quoting Ted Cabeen <secabeen at pobox.com>:
>
>> It would be nice if Horde would print the web browser info in the problem
>> report emails that are submitted by users via the horde problem page.  We
>> have enough horde users who don't even know what OS they're running, so
>> getting browser version info from them is virtually impossible.  Thanks.
>
>Patch?

Here's one for 2.1 that should work for CVS, I think.

- --- problem.php.orig    Tue Jan 14 13:52:24 2003
+++ problem.php Fri Jan 10 11:04:35 2003
@@ -69,7 +69,9 @@
          $message = str_replace("\r\n", "\n", $message);
          $message = "\nThis problem report was received from $remote. " .
              'The user clicked the problem report link from the following location: ' .
- -             Horde::getFormData('return_url', 'No requesting page') . "\n\n" . $message;
+             Horde::getFormData('return_url', 'No requesting page') . "\n" .
+             "and is using the following browser:\n" . 
+             $HTTP_SERVER_VARS['HTTP_USER_AGENT'] . "\n\n" . $message;
 
          $mime = new MIME_Message();
          $body = new MIME_Part('text/plain', Text::wrap($message, 80, "\n"));
- -- 
Ted Cabeen           http://www.pobox.com/~secabeen            ted at impulse.net 
Check Website or Keyserver for PGP/GPG Key BA0349D2         secabeen at pobox.com
"I have taken all knowledge to be my province." -F. Bacon  secabeen at cabeen.org
"Human kind cannot bear very much reality."-T.S.Eliot        cabeen at netcom.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)
Comment: Exmh version 2.5 07/13/2001

iD8DBQE+JIbZoayJfLoDSdIRAkw/AJ4u+mpAhrPfzGw3BhLArXdMPZoehACeLgZw
lJJ6TEBwbp4uF+HLFBpshow=
=ZINL
-----END PGP SIGNATURE-----



More information about the horde mailing list