Ignore:
Timestamp:
Mar 8, 2010, 5:07:33 PM (14 years ago)
Author:
maron
Message:
  • Opraveno: Exportování lua souborů. * Opraveno: Zobrazování hlavní stránky AoWoW.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r363 r364  
    306306            $DbRow = $DbResult2->fetch_assoc();
    307307            $Value['Text'] = addslashes($DbRow['Text']);
    308             $Value['Comment'] = addslashes($DbRow['Comment']);
     308            // Escape new line control characters
     309            $Value['Text'] = str_replace("\n", '\n', $Value['Text']);
     310            $Value['Text'] = str_replace("\r", '', $Value['Text']);
     311            $Value['Comment'] = $DbRow['Comment'];
     312            // Only one line comments allowed
     313            $Value['Comment'] = str_replace("\n", ' ', $Value['Comment']);
     314            $Value['Comment'] = str_replace("\r", '', $Value['Comment']);
    309315            //echo('.');
    310316          }
     
    313319          $NewLine .= "\n";
    314320          $File2->WriteLine($NewLine);
    315         } else $File2->WriteLine($Line."\n");
     321        } else $File2->WriteLine($Line."");
    316322      }
    317323      echo('Hotovo <br/>');
Note: See TracChangeset for help on using the changeset viewer.