Dotclear

Ticket #606 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

Boucle infini

Reported by: tomamplius Owned by: kwon
Priority: highest Component: plugin:newsletter
Severity: blocker Keywords:
Cc:

Description

Dans le script class.newsletter.tools.php pour la fonction cutHtmlString($str, $size)

On peut se retrouver dans la situation où "strpos($str, '>', $pos)" retourne vide quand il n'y a pas de '>' dans le reste de la chaine. Dans ce cas la position repasse à 1 et commence une boucle infinie. j'ai corrigé chez moi de le problème avec le code suivant. un break qui n'est surement pas très propre.

Attachments

Correction.txt Download (625 bytes) - added by tomamplius 13 years ago.

Change History

Changed 13 years ago by tomamplius

comment:1 Changed 13 years ago by kwon

  • Status changed from new to assigned

comment:2 Changed 13 years ago by kwon

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [2782]) Newsletter : closes #610, #606

Note: See TracTickets for help on using tickets.

Sites map