Ignore:
Timestamp:
Apr 13, 2010, 5:22:25 PM (14 years ago)
Author:
george
Message:
  • Opraveno: Na konce řádků při generování exportů se vkládaly nulové znaky.
  • Upraveno: Místo zaznamenávání odkazujících webů na bannery se budou zaznamenávat veškeré cizí přístup včetně přístup přes bannery.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/MemoryStream.php

    r447 r460  
    5858  }
    5959
    60   public function ReadString()
     60  public function ReadLine($EndSymbol = "\r")
    6161  {
    6262    $Length = 0;
     
    6565    {
    6666      $Char = $this->ReadChar();
    67       if($Char == "\0") break;
     67      if($Char == $EndSymbol) break;
    6868    }
    6969    $Result = substr($this->Data, $StartPosition, $this->Position - $StartPosition);
     
    104104  }   
    105105 
    106   public function WriteString($Value)
     106  public function WriteLine($Value)
    107107  {
    108     $this->WriteBlock($Value."\0", strlen($Value) + 1);
     108    $this->WriteBlock($Value."\r\n", strlen($Value) + 2);
    109109  }
    110110
Note: See TracChangeset for help on using the changeset viewer.