1
niko11
HTML code: "javascript" splitted up with a blank space: "java script" by default
  • 2003/7/9 10:06

  • niko11

  • Just popping in

  • Posts: 4

  • Since: 2003/6/27


javascript word is splitted in two pieces up by default , in all sort of html code input (including this own forum post!!).

I am trying to use a simple JS with a URL link, of course needing to use word "javascript" included on it. However the html code generated by XOOPS 2.0.3 is splitting-up the word "javascript" as java script breaking up the js function.
le="color: #000000"><?php <a href="javascript:popImage('first.jpg')"> <img src=second.jpg" border="0" align="right"></a>

Note: Admin would like to see than my original post code has word "javascript" not " java script" displayed. It's not possible to include JS snippets with posts by some security concerns?
TIA
Niko

2
niko11
Re: HTML code: "javascript" splitted up with a blank space: "java script" by default
  • 2003/7/9 10:43

  • niko11

  • Just popping in

  • Posts: 4

  • Since: 2003/6/27


oops!... I have just seen the "problem".
It's located in xoops:html:class:module.textsanitizer.php"; Line 195:
le="color: #000000"><?php $patterns[] = "/javascript:/si"; $replacements[] = "java script:";


.. so then , any way to be able to use 'javascript' into posts html code? or just discard it by security concern? Thanks a lot for any help

Niko

3
jayjay
Re: HTML code: "javascript" splitted up with a blank space: "java script" by default
  • 2004/4/27 5:58

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


The answer may be a bit late, but here it is anyway

You could replace the ":" with its equivalent in the html coded character set (works for me!). I'm not posting it here for the obvious reasons.

Greets!

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!