NetTalk Central

Author Topic: unsafahtml problem  (Read 3564 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
unsafahtml problem
« on: October 04, 2012, 01:38:44 AM »
hello please an anyone help trying to display a page on a webpage procedure but i think the unsafehtml is kicking in and blocking it. i have set script on tagOK in webserver procedure to return true but still having problems. After i debugged i got this back

Code: [Select]
[netTrace][thread=3] index[netTrace][thread=3] UnSafeHtml (2): " on" or "script" detected in <script type="               ">CREATE_THREAD_DEBUG_EVENT: tid=000010FC
so do anyone know how to sole this?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11247
    • View Profile
Re: unsafahtml problem
« Reply #1 on: October 04, 2012, 02:10:13 AM »
indeed, the use of the <script tag makes the Html very "unsafe" (in the sense that if the user is the one creating the html this would end badly.)

So, in order to help I need more context of the exact usage you are using. Can you make a simple example - or mod any of the shipping examples to do what you are doing?

Is this <script> code from the xHtml tab of something? Like from a NetWebPage procedure maybe?

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: unsafahtml problem
« Reply #2 on: October 04, 2012, 02:47:43 AM »
Hi Bruce, it is from a NetWebPage and the user has no input in this, it is hard coded by me in the procedure setup embed point.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11247
    • View Profile
Re: unsafahtml problem
« Reply #3 on: October 04, 2012, 05:12:33 AM »
ok, then post an example and I'll tell you how to tweak it.

cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: unsafahtml problem
« Reply #4 on: October 04, 2012, 08:59:00 AM »
Hi bruce manage to narrow the offending code. When i take this out everthing works again.
 '<script type="text/javascript">var FolderPath="news/";</script><script src="news/ns1js.js" type="text/javascript"></script>'
What can i do?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11247
    • View Profile
Re: unsafahtml problem
« Reply #5 on: October 04, 2012, 11:12:39 PM »
>> What can i do?

post an example and I'll tell you how to tweak it.

We knew the problem revolved around your use of <script> because that's what the error told us. However it's the _context_ of your usage which is the root question.

cheers
Bruce