I found a bug in overLib

From: Date: Thu, 14 Mar 2002 15:05:44 +0000
Subject: I found a bug in overLib
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3057@lists.php.net to get a copy of this message
I have a problem with overLib. I an using PHP 4.06 with settings (php.ini) url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry". It means, that if I am using sessions PHP adds automatic session id to every href. I am using overLib under Smarty Templates 2.0 (snapshot 2002/03/13) and I set my browser (IE6.0) to debug every Javascript errors. The following (bad)line is a part of my HTML code: ------------------------------------- if (o3_css == CSSCLASS) closing = "<TD ALIGN=RIGHT><A HREF="\?sid=b3ec3bc002decadb7153655258a2e669""/\" "+closeevent+"=\"return cClick();\" class=\""+o3_closefontclass+"\">"+close+"</A></TD>"; ------------------------------------- The error is with " endings of href. This line is extracted from the bigger part of overLib as follows: ------------------------------------- // Makes table with caption and optional close link function ol_content_caption(text, title, close) { closing = ""; closeevent = "onMouseOver"; if (o3_closeclick == 1) closeevent = "onClick"; if (o3_capicon != "") o3_capicon = "<IMG SRC=\""+o3_capicon+"\"> "; if (close != "") { if (o3_css == CSSCLASS) closing = "<TD ALIGN=RIGHT><A HREF="\?sid=b3ec3bc002decadb7153655258a2e669""/\" "+closeevent+"=\"return cClick();\" class=\""+o3_closefontclass+"\">"+close+"</A></TD>"; if (o3_css == CSSSTYLE) closing = "<TD ALIGN=RIGHT><A HREF="\?sid=b3ec3bc002decadb7153655258a2e669""/\" "+closeevent+"=\"return cClick();\" style=\"color: "+o3_closecolor+"; font-family: "+o3_closefont+"; font-size: "+o3_closesize+o3_closesizeunit+"; text-decoration: "+o3_closedecoration+"; font-weight: "+o3_closeweight+"; font-style:"+o3_closestyle+";\">"+close+"</A></TD>"; if (o3_css == CSSOFF) closing = "<TD ALIGN=RIGHT><A HREF="\?sid=b3ec3bc002decadb7153655258a2e669""/\" "+closeevent+"=\"return cClick();\"><FONT COLOR=\""+o3_closecolor+"\" FACE=\""+o3_closefont+"\" SIZE=\""+o3_closesize+"\">"+close+"</FONT></A></TD>"; } if (o3_css == CSSCLASS) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 class=\""+o3_bgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT class=\""+o3_captionfontclass+"\">"+o3_capicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+o3_fgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+o3_textfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"; if (o3_css == CSSSTYLE) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 style=\"background-color: "+o3_bgcolor+"; background-image: url("+o3_bgbackground+"); height: "+o3_height+o3_heightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT style=\"font-family: "+o3_captionfont+"; color: "+o3_capcolor+"; font-size: "+o3_captionsize+o3_captionsizeunit+"; font-weight: "+o3_captionweight+"; font-style: "+o3_captionstyle+";\">"+o3_capicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+o3_fgcolor+"; background-color: "+o3_fgcolor+"; height: "+o3_height+o3_heightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+o3_textfont+"; color: "+o3_textcolor+"; font-size: "+o3_textsize+o3_textsizeunit+"; text-decoration: "+o3_textdecoration+"; font-weight: "+o3_textweight+"; font-style:"+o3_textstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"; if (o3_css == CSSOFF) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 "+o3_bgcolor+" "+o3_bgbackground+" "+o3_height+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><B><FONT COLOR=\""+o3_capcolor+"\" FACE=\""+o3_captionfont+"\" SIZE=\""+o3_captionsize+"\">"+o3_capicon+title+"</FONT></B></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+o3_fgcolor+" "+o3_fgbackground+" "+o3_height+"><TR><TD VALIGN=TOP><FONT COLOR=\""+o3_textcolor+"\" FACE=\""+o3_textfont+"\" SIZE=\""+o3_textsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"; set_background(""); return txt; } ------------------------------------- I am not sure it this error is from pure code of overLib or from implementation in Smarty Templates 2.0 so I send this message to the author of overLib and to discussion list of Smarty Templates. -- Jarek

« previous php.smarty.general (#3057) next »