Menu

JS Error

2002-02-28
2002-03-01
  • Torsten Eymann

    Torsten Eymann - 2002-02-28

    Hello,

    who is this line ?

    i receive the following javascript error in mozilla,ns and ie!

    Error: unterminated string literal
    Source File: http://chat.online.oz.de/getlines.php
    Line: 24, Column: 4
    Source Code:
    wrt('<font COLOR="#e1e1e1"><STRONG><U>rico<\/U><\/STRONG><\/font><STRONG> <font>[Do 14:36]</font><font COLOR=#3366FF> <EM>sagt: </EM>Bekomme ich Antworten auf meine Fragen?????

    thanks Torsten

     
    • Michael Oertel

      Michael Oertel - 2002-02-28

      may there is an CR/LF within this wrt('...'), if so remove it.

      Michael

       
    • Torsten Eymann

      Torsten Eymann - 2002-02-28

      Hi Michael,

      wo/wie finde ich die Zeile im PHP-File?

      Torsten

       
      • Michael Oertel

        Michael Oertel - 2002-02-28

        ich gehe davon aus, dass du eine zeile als moderator editiert hast dabei ein CR/LF in die textarea geschriben hast. bei der ausgabe der zeile kam dann der Fehler. wenn ich richtig liege mach folgendes:

        in html/edit.php
        ndere:
        if($checked){
        schreib_zeile($vor_text.htmlspecialchars($text).$nach_text,$channel);

        in:
        if($checked){
          schreib_zeile(preg_replace('/\r\n|\r|\n/', ' ',$vor_text.htmlspecialchars($text).$nach_text),$channel);

        Micha

         
    • Torsten Eymann

      Torsten Eymann - 2002-03-01

      Thanks micha, this is the right line!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.