Welcome to Geeklog Saturday, October 21 2017 @ 03:29 pm EDT


Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/2004
Posts: 555
Location:Champaign, Illinois
I was getting very frustrated trying to figure out why my javasctipt in my story was not rendering correctly.
I have skip html filtering for root = true

So again hacking into core code when it should not be necessary:

lib-story.php line ~ 83 & 84:
PHP Formatted Code

    $introtext = $story->displayElements('introtext');
    $bodytext = $story->displayElements('bodytext');
 

to:
PHP Formatted Code

    $introtext = COM_undoSpecialChars($story->displayElements('introtext'));
    $bodytext = COM_undoSpecialChars($story->displayElements('bodytext'));
 


I'm sure this is like using a hammer to kill a gnat, but so far I see no negatives.

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/2004
Posts: 555
Location:Champaign, Illinois
Just ran into this issue again in GL 1.8 while adding SyntaxHighlighter.

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Status: offline

stefani88

Forum User
Newbie
Registered: 03/01/2012
Posts: 2


Thank you so much for your post.

All times are EDT. The time is now 03:29 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content