#205 invalid links label

pending-invalid
Perrick Penet
5
2011-11-30
2011-06-01
Anonymous
No

function addLink(SimpleAnchorTag $tag) {
$this->links[$this->links_counter] = $tag;
- $this->links_label[$this->links_counter] = str_replace("\xA0", ' ', $tag->getText() );
+ $this->links_label[$this->links_counter] = str_replace("\n", ' ', $tag->getText() );
$this->links_counter++;
}

in case Russian UTF-8 document current links_label break some letters

Discussion


  • Anonymous
    2011-06-01

    this bug in page.php - SimplePage::addLink()

     
  • Perrick Penet
    Perrick Penet
    2011-11-30

    Your patch doesn't fit with the current trunk. You can either try to send us another patch against trunk or add a full failing test case. We could pick it up from there.

    Thanks again for submitting this bug,
    Perrick

     
  • Perrick Penet
    Perrick Penet
    2011-11-30

    • labels: --> Unit test framework
    • assigned_to: nobody --> pp11
    • status: open --> pending-invalid