ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Javascript events - “http://localhost/removecookies"

July 12, 2010 9:11pm

Subscribe [2]
  • #1 / Jul 12, 2010 9:11pm

    therobbit

    1 posts

    To reproduce:
    1) Start a new blank template;
    2) Enter only a Javascript events reserved word- for example, “onClick”. Case isn’t important. You can enter full script tags and everything, but just the single word is enough.
    3) Update the template.

    Expected to see:
    Successful update, the word displayed.

    Actually see:
    Browser redirected to http://localhost/removecookies. (Unless I turn webserving on my computer on, this is of course a “cannot connect to server” error page.) Template does NOT update.

    Question:
    Does EE Core check for JS reserved words and reject them? If so, why, and how can I get round it? If it’s a limitation of Core, will Freelancer licence allow me to enter JS events?

    EE Core 1.6.9

    Any help gratefully received.

    Robert

  • #2 / Jul 13, 2010 3:26am

    Derek Jones

    7561 posts

    EE has no limitation on what you can put in your templates, but it sounds like your web server may have some security extensions installed that is causing the behavior.  There is certainly nothing in ExpressionEngine that would redirect you to a URL like that.

  • #3 / Jul 13, 2010 4:27pm

    therobbit

    1 posts

    That was exactly it - brilliant. I hadn’t even thought of that.

    Thank you, Mr Jones!

    RESOLVED

  • #4 / Jul 13, 2010 4:29pm

    Derek Jones

    7561 posts

    Glad you found it, therobbit!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases