mhonarc-commits
[Top] [All Lists]

CVS: mhonarc/MHonArc/lib ewhutil.pl,2.8,2.9

2002-09-24 20:51:20
Update of /cvsroot/mhonarc/mhonarc/MHonArc/lib
In directory subversions:/tmp/cvs-serv12269

Modified Files:
	ewhutil.pl 
Log Message:
Added minor check to htmlize and entify to suppress any possible -w
warnings.


Index: ewhutil.pl
===================================================================
RCS file: /cvsroot/mhonarc/mhonarc/MHonArc/lib/ewhutil.pl,v
retrieving revision 2.8
retrieving revision 2.9
diff -C2 -r2.8 -r2.9
*** ewhutil.pl	25 Aug 2001 19:52:48 -0000	2.8
--- ewhutil.pl	25 Sep 2002 03:51:13 -0000	2.9
***************
*** 49,52 ****
--- 49,53 ----
  
  sub htmlize {			# Older name
+     return ''  unless scalar(@_) && defined($_[0]);
      my($txt) = $_[0];
      $txt =~ s/(["&<>])/$HTMLSpecials{$1}/g;
***************
*** 55,58 ****
--- 56,60 ----
  
  sub entify {			# Newer name
+     return ''  unless scalar(@_) && defined($_[0]);
      my($txt) = $_[0];
      $txt =~ s/(["&<>])/$HTMLSpecials{$1}/g;

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV