Note that there are some explanatory texts on larger screens.

plurals
  1. PODrupal incorrectly escapes tags in javascript
    primarykey
    data
    text
    <p>I installed drupal-6.16. I applied the patch from the post <a href="http://drupal.org/node/222926#comment-930745" rel="nofollow noreferrer">http://drupal.org/node/222926#comment-930745</a>. It works correctly in simple cases. But following code of counter is handled incorrectly and counter is now displayed on the page after drupal.</p> <p>Drupal modifies the string</p> <pre><code>"alt='1Gb.ua counter'&gt;&lt;\/a&gt;")&lt;/script&gt; </code></pre> <p>to </p> <pre><code>"alt='1Gb.ua counter' /&gt;&amp;lt;\/a&gt;")&lt;/a&gt;&lt;/script&gt; </code></pre> <p>The full code of counter follows:</p> <pre><code>&lt;br&gt;&lt;br&gt; Text &lt;br&gt;&lt;br&gt; &lt;!-- counter.1Gb.ua --&gt; &lt;script language="javascript" type="text/javascript"&gt; cgb_js="1.0"; cgb_r=""+Math.random()+"&amp;r="+ escape(document.referrer)+"&amp;pg="+ escape(window.location.href); document.cookie="rqbct=1; path=/"; cgb_r+="&amp;c="+ (document.cookie?"Y":"N"); &lt;/script&gt;&lt;script language="javascript1.1" type="text/javascript"&gt; cgb_js="1.1";cgb_r+="&amp;j="+ (navigator.javaEnabled()?"Y":"N")&lt;/script&gt; &lt;script language="javascript1.2" type="text/javascript"&gt; cgb_js="1.2"; cgb_r+="&amp;wh="+screen.width+ 'x'+screen.height+"&amp;px="+ (((navigator.appName.substring(0,3)=="Mic"))? screen.colorDepth:screen.pixelDepth)&lt;/script&gt; &lt;script language="javascript1.3" type="text/javascript"&gt; cgb_js="1.3"&lt;/script&gt; &lt;script language="javascript" type="text/javascript"&gt;cgb_r+="&amp;js="+cgb_js; document.write("&lt;a href='http://www.1Gb.ua?cnt=1416'&gt;"+ "&lt;img src='http://counter.1Gb.ua/cnt.aspx?"+ "u=1416&amp;"+cgb_r+ "&amp;' border=0 width=88 height=31 "+ "alt='1Gb.ua counter'&gt;&lt;\/a&gt;")&lt;/script&gt; &lt;noscript&gt;&lt;a href='http://www.1Gb.ua?cnt=1416'&gt; &lt;img src="http://counter.1Gb.ua/cnt.aspx?u=1416" border=0 width="88" height="31" alt="1Gb.ua counter"&gt;&lt;/a&gt; &lt;/noscript&gt; &lt;!-- /counter.1Gb.ua --&gt; </code></pre> <p>Does anybody have this code working?</p> <p>How should Drupal be fixed to handle this code in correct way?</p> <p>Other suggestions are welcome.</p> <p><strong>EDIT:</strong></p> <p>Removing comments does not resolve the issue.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload