1
ChaoticMess
Using javascript - where does script removed come from?

Hi,

I'm installing some custom content in Tiny Content pages. Whenever I view the page my href has (script removed) inserted in the reference. Where does this come from and how do I get rid of it?

CM

2
ChaoticMess
Re: Using javascript - where does script removed come from?

I found the code is in the text sanitizer process. I'm sure there' a sanctioned way to add javascript functions and allow them to be called in content pages. As a work around I added some code to class/module.textsanitizer.php so that when I pass in

href='mymagicjunk'

it returrns

href='J A V A S C R I P T :myfunction'

without the extra spaces. I'm sure there's a better way but this worked quickly.

3
fl3425
Re: Using javascript - where does script removed come from?
  • 2007/7/23 14:49

  • fl3425

  • Just popping in

  • Posts: 1

  • Since: 2007/2/9 1


What changes did you do?

Does anyone know more about this problem..I would like to ba able to user Javascript on my pages.

4
ChaoticMess
Re: Using javascript - where does script removed come from?

I just told you what I did. There are regular expressions in the code looking for the word javascript. Down in the text sanitizing code there's a place where this string is replaced with '(script removed)'. So the secret is to use some code name of your own and have the filter replace it with the word javascript.

Login

Who's Online

351 user(s) are online (277 user(s) are browsing Support Forums)


Members: 0


Guests: 351


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