Changeset 7023
- Timestamp:
- 2004-03-12T11:47:22+13:00 (20 years ago)
- Location:
- trunk/gsdl/perllib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/BasClas.pm
r6987 r7023 113 113 &gsprintf(STDERR, "<ClassInfo>\n"); 114 114 &gsprintf(STDERR, " <Name>$classifieroptions->{'name'}</Name>\n"); 115 &gsprintf(STDERR, " <Desc>$classifieroptions->{'desc'}</Desc>\n"); 115 my $desc = &gsprintf::lookup_string($classifieroptions->{'desc'}); 116 $desc =~ s/</&lt;/g; # doubly escaped 117 $desc =~ s/>/&gt;/g; 118 &gsprintf(STDERR, " <Desc>$desc</Desc>\n"); 116 119 &gsprintf(STDERR, " <Abstract>$classifieroptions->{'abstract'}</Abstract>\n"); 117 120 &gsprintf(STDERR, " <Inherits>$classifieroptions->{'inherits'}</Inherits>\n"); -
trunk/gsdl/perllib/plugins/BasPlug.pm
r6987 r7023 175 175 &gsprintf(STDERR, "<PlugInfo>\n"); 176 176 &gsprintf(STDERR, " <Name>$pluginoptions->{'name'}</Name>\n"); 177 &gsprintf(STDERR, " <Desc>$pluginoptions->{'desc'}</Desc>\n"); 177 my $desc = &gsprintf::lookup_string($pluginoptions->{'desc'}); 178 $desc =~ s/</&lt;/g; # doubly escaped 179 $desc =~ s/>/&gt;/g; 180 181 &gsprintf(STDERR, " <Desc>$desc</Desc>\n"); 178 182 &gsprintf(STDERR, " <Abstract>$pluginoptions->{'abstract'}</Abstract>\n"); 179 183 &gsprintf(STDERR, " <Inherits>$pluginoptions->{'inherits'}</Inherits>\n"); -
trunk/gsdl/perllib/printusage.pm
r6945 r7023 87 87 88 88 # Escape '<' and '>' characters 89 $optiondesc =~ s/</& lt;/g;90 $optiondesc =~ s/>/& gt;/g;89 $optiondesc =~ s/</&lt;/g; # doubly escaped 90 $optiondesc =~ s/>/&gt;/g; 91 91 92 92 # Display option name, description and type … … 117 117 118 118 # Escape '<' and '>' characters 119 $optionvaluedesc =~ s/</& lt;/g;120 $optionvaluedesc =~ s/>/& gt;/g;119 $optionvaluedesc =~ s/</&lt;/g; #doubly escaped 120 $optionvaluedesc =~ s/>/&gt;/g; 121 121 122 122 &gsprintf(STDERR, " <Desc>$optionvaluedesc</Desc>\n"); … … 144 144 145 145 # Escape '<' and '>' characters 146 $optiondeftvalue =~ s/</& lt;/g;147 $optiondeftvalue =~ s/>/& gt;/g;146 $optiondeftvalue =~ s/</&lt;/g; #doubly escaped 147 $optiondeftvalue =~ s/>/&gt;/g; 148 148 149 149 &gsprintf(STDERR, " <Default>$optiondeftvalue</Default>\n");
Note:
See TracChangeset
for help on using the changeset viewer.