Author: rmeggins
Update of /cvs/dirsec/dsgw/orgbin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16950/dsgw/orgbin
Modified Files:
myorg.in org.in
Log Message:
Resolves: bug 435230
Description: Clean up all HTML pages (Gateway, Org Tool, Phonebook, etc)
Fix Description: This is just the first pass. I focused mainly on the
phonebook pages, but the C code fixes will apply to dsgw too.
The goal is to make the pages clean with HTML Tidy running in Firefox 2.
Most of the template pages had to change because they had comments like
this:
<!-- ----- comment -----
HTML 4.01 does not like this - no sequence of -- or more dashes in a comment.
The other major change was the use of & instead of just a single & in
URLs for href and img src links. However, javascript does not like the
encoded entities, so I had to add some code to make sure we use the
unencoded form in javascript, so I added another option called "entities"
to the html template code, and added a function that will convert
encoded entities to their raw form in place.
I'm also adding some debugging shell scripts that can be used to debug
CGI programs.
Platforms tested: RHEL5 x86_64
Flag day: Yes - autotool file changes.
Doc: none yet
Index: myorg.in
===================================================================
RCS file: /cvs/dirsec/dsgw/orgbin/myorg.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- myorg.in 28 Jan 2008 21:22:48 -0000 1.2
+++ myorg.in 6 Mar 2008 22:00:39 -0000 1.3
@@ -423,7 +423,7 @@
print "
-<SCRIPT language=\"javascript\">
+<SCRIPT type=\"text/javascript\">
var today = new Date();
var expires = new Date();
Index: org.in
===================================================================
RCS file: /cvs/dirsec/dsgw/orgbin/org.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- org.in 29 Feb 2008 21:41:12 -0000 1.5
+++ org.in 6 Mar 2008 22:00:39 -0000 1.6
@@ -114,8 +114,8 @@
if ( defined $cg->param("context") )
{
$context = $cg->param("context");
- $contextParamString = "context=${context}&";
- $config_tokens{"url-phonebook-base"} =~
s/context=.*?&/$contextParamString/g;
+ $contextParamString = "context=${context}&";
+ $config_tokens{"url-phonebook-base"} =~
s/context=.*?&/$contextParamString/g;
}
#
Show replies by date