Following code of counter is handled incorrectly and counter is now displayed on the page after drupal.

Drupal modifies the string

"alt=' counter'><\/a>")


"alt=' counter' /><\/a>")

The full code of counter follows:

cgb_js="1.0"; cgb_r=""+Math.random()+"&r="+ escape(document.referrer)+"&pg="+ escape(window.location.href); document.cookie="rqbct=1; path=/"; cgb_r+="&c="+ (document.cookie?"Y":"N"); cgb_js="1.1";cgb_r+="&j="+ (navigator.javaEnabled()?"Y":"N") cgb_js="1.2"; cgb_r+="&wh="+screen.width+ 'x'+screen.height+"&px="+ (((navigator.appName.substring(0,3)=="Mic"))? screen.colorDepth:screen.pixelDepth) cgb_js="1.3"cgb_r+="&js="+cgb_js; document.write(""+ "Only local images are allowed.<\/a>")

Only local images are allowed. border=0 width="88" height="31" alt=" counter">

The reason for this "

This is somewhat because of the code in file filter.module, line 777:

$text = preg_replace('!<([^a-zA-Z/])!', '<\1', $text);

I don't know how this can be fixed in simple way

#1 bug_Description.txt1.45 KBsergtk


sergtk’s picture

new1.45 KB

Hmm.... All my text is escaped. I attached file with description.

sergtk’s picture

This is connected with line 777 in file filter.module

sergtk’s picture

Damien Tournoud’s picture

Version:6.16» 6.x-dev

Confirmed that it works as it should on 7.x.