diff options
author | Guido van Rossum <guido@python.org> | 1997-05-23 18:13:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-23 18:13:58 (GMT) |
commit | a0e9a6d332d22fd460ecdf7f8f3789c21a256701 (patch) | |
tree | d12d6562385316bedbf8b936dfbc91309b151494 /Tools | |
parent | d1c1ec8a77fa8c3421d034b9a5c9c661b5e466dc (diff) | |
download | cpython-a0e9a6d332d22fd460ecdf7f8f3789c21a256701.zip cpython-a0e9a6d332d22fd460ecdf7f8f3789c21a256701.tar.gz cpython-a0e9a6d332d22fd460ecdf7f8f3789c21a256701.tar.bz2 |
Small nits for Grail; don't forget to cgi.translate & and <.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/faqwiz/faqmain.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/faqwiz/faqmain.py b/Tools/faqwiz/faqmain.py index 2ce723d..5c7d8b2 100644 --- a/Tools/faqwiz/faqmain.py +++ b/Tools/faqwiz/faqmain.py @@ -90,7 +90,7 @@ class FAQServer: <H2>Search the FAQ</H2> - <FORM ACTION="faq.py?req=query"> + <FORM ACTION="faq.py"> <INPUT TYPE=text NAME=query> <INPUT TYPE=submit VALUE="Search"><BR> (Case insensitive regular expressions.) @@ -612,6 +612,8 @@ class FAQServer: pre = 1 if '/' in line or '@' in line: line = self.translate(line) + elif '<' in line or '&' in line: + line = cgi.escape(line) if not pre and '*' in line: line = self.emphasize(line) print line @@ -680,7 +682,7 @@ class FAQServer: <P> <HR> <A HREF="http://www.python.org">Python home</A> / - <A HREF="faq.py">FAQ home</A> / + <A HREF="faq.py?req=frontpage">FAQ home</A> / Feedback to <A HREF="mailto:guido@python.org">GvR</A> ''' print ''' |