#94 Related Links :: PREG needs an update

enhancement
closed-fixed
nobody
5
2001-03-09
2001-02-26
tobozo
No

Article.php3 : inserting an article in html that
contains applet tags <applet code=.....> causes the
applet to be replicated in the Related box as well.
The <A of <Applet is understood as a <a href link.

Workaround :

use this regex instead :
eregi_replace("<a ([^>]*)href=\"?([^\"]*)\"?([^>]*)
>","",$p_intro_text);

(added a space after the <a )

Note : this regex exists on line 49, 54 of
article.php3 and on line 948 of Story.class and I'm
not sure if they all have to be updated.

Discussion

  • Ajay Sharma
    Ajay Sharma
    2001-03-09

    Logged In: YES
    user_id=70334

    I sent in a change to the CVS for the article.php3 file. I
    didn't update the Story one though....

     
  • Ajay Sharma
    Ajay Sharma
    2001-03-09

    • status: open --> closed-fixed
     
  • Ajay Sharma
    Ajay Sharma
    2001-03-09

    Logged In: YES
    user_id=70334

    The regex isn't in the Story.class (at least not in
    0.6-final). this bug is done!