Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42108
    Anonymous
    Inactive

    I had to trouble shoot a problem today when updating to the latest revision. I was getting the following jscript error. “; Missing before statement”

    I identified the line in the code 1776 of dbem_events.php. The cause of the error was i was storing html values which had single quotes in the single event format. This was easily fixed on my end by switching those to double quotes.

    Now this could possibly happen in other areas from what i seen in the code, but this was the area and how i fixed my issue. This could be avoided at the code level, to either replace the single quotes with double quotes or properly escape it in the javascript output.

    Hope this helps keep up the good work.

    #44838
    Franky
    Keymaster

    And I who thought I did this 🙂

    May I ask you to test the following? Replace in dbem_events.php the line

    var tmp_value='<?php echo preg_replace("/rn|r|n/","___",get_option ( 'dbem_event_page_title_format' )); ?>';

    by

    var tmp_value='<?php echo addslashes(preg_replace("/rn|r|n/","___",get_option ( 'dbem_event_page_title_format' ))); ?>';

    (there are 8 similar lines) and see if that solves it.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top