From 21e636db391efc7af6159eaea2d37bde36fda35c Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" Date: Thu, 25 Mar 1999 00:14:26 +0000 Subject: [PATCH] Quote URLs and email addresses in the long description of bugs. git-svn-id: svn://10.0.0.236/trunk@25014 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/CHANGES | 5 +++++ mozilla/webtools/bugzilla/README | 9 ++++++++- mozilla/webtools/bugzilla/bug_form.pl | 6 +++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/CHANGES b/mozilla/webtools/bugzilla/CHANGES index 7128e0ebb26..961b9682ff7 100644 --- a/mozilla/webtools/bugzilla/CHANGES +++ b/mozilla/webtools/bugzilla/CHANGES @@ -10,6 +10,11 @@ query the CVS tree. For example, will tell you what has been changed in the last week. +3/24/99 Added quoting of URLs and email addresses in bug descriptions. This +requires the use of the HTML::FromText CPAN module, which can be downloaded +from ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/HTML/. + + 3/22/99 Added the ability to query by fields which have changed within a date range. To make this perform a bit better, we need a new index: diff --git a/mozilla/webtools/bugzilla/README b/mozilla/webtools/bugzilla/README index 8aab09394d0..30c5c0cb6c5 100644 --- a/mozilla/webtools/bugzilla/README +++ b/mozilla/webtools/bugzilla/README @@ -161,7 +161,12 @@ It can be installed in the usual fashion after it has been fetched from CPAN where it is found as the Chart-x.x... tarball in a directory to be listed in Appendix A. -1.9. HTTP server +1.9. HTML::FromText Perl module (1.001 or greater) + +This module does conversion from plaintext to html, doing the right +things with URLs and stuff. You can find it on CPAN (link in Appendix A). + +1.10. HTTP server You have a freedom of choice here - Apache, Netscape or any other server on UNIX would do. The only thing - to make configuration easier you'd better run @@ -370,6 +375,8 @@ GD Perl module: ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/GD/ Chart::Base module: ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/Chart/ +HTML::FromText module: + ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/HTML/ Appendix B. Modifying Your Running System diff --git a/mozilla/webtools/bugzilla/bug_form.pl b/mozilla/webtools/bugzilla/bug_form.pl index cd2ff0e331a..e8bc30ec3fb 100644 --- a/mozilla/webtools/bugzilla/bug_form.pl +++ b/mozilla/webtools/bugzilla/bug_form.pl @@ -21,6 +21,8 @@ use diagnostics; use strict; +use HTML::FromText; + quietly_check_login(); my $query = " @@ -306,7 +308,9 @@ print " Opened: $bug{'creation_ts'}
-" . html_quote($bug{'long_desc'}) . "
+";
+print text2html($bug{'long_desc'}, email=>1, urls=>1);
+print "
 

\n";