Changeset 121 for trunk


Ignore:
Timestamp:
Feb 21, 2009, 7:53:33 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Vkládání lomítek do řetěžců importovaných a exportovaných skupin lua skriptů.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r120 r121  
    288288                $LineParts = explode(';', $Line);
    289289        $LineParts2 = explode('=', $LineParts[0]);
    290                 $Value['ShortCut'] = addslashes(trim($LineParts2[0]));
    291                 $Value['Text'] = addslashes(substr(trim($LineParts2[1]), 1, -1));
     290                $Value['ShortCut'] = trim($LineParts2[0]);
     291                $Value['Text'] = substr(trim($LineParts2[1]), 1, -1);
    292292                $Value['Comment'] = addslashes(substr(trim($LineParts[1]), 3));
    293293
  • trunk/import/index.php

    r120 r121  
    140140                  $LineParts = explode(';', $Line);
    141141          $LineParts2 = explode('=', $LineParts[0]);
    142                   $Value['ShortCut'] = addslashes(trim($LineParts2[0]));
    143                   $Value['Text'] = addslashes(substr(trim($LineParts2[1]), 1, -1));
    144                   $Value['Comment'] = addslashes(trim($LineParts[1]));
     142                  $Value['ShortCut'] = trim($LineParts2[0]);
     143                  $Value['Text'] = substr(trim($LineParts2[1]), 1, -1);
     144                  $Value['Comment'] = addslashes(substr(trim($LineParts[1]), 3));
    145145
    146146          $DbResult2 = $Database->SQLCommand('SELECT ID FROM '.$Group['TablePrefix'].' WHERE ShortCut="'.$Value['ShortCut'].'" AND (Language=0)');
Note: See TracChangeset for help on using the changeset viewer.