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.
<a href="javascript:popImage('first.jpg')"> <img src=second.jpg" border="0" align="right">

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:
$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

Who's Online

257 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 257


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits