RDF backend broken

Discussion in 'Site Problems & Feedback' started by Glaanieboy, Mar 24, 2004.

  1. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
  2. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    I have tracked the problem down to http://www.osnn.net/comments.php?shownews=10151. As you can see, it gives an error at "<li>Fixed some problems with DVD-RAM devices on Windows NT/2000...</note>", because the RDF program it obviously set to break the <note> thingy at a certain point, BUT that means that the final </li> tag for the DVD-RAM bit is missing, thus giving the error. Is it possible to remove the breaking?
     
  3. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    It is 'fixed' now, the newspost in question has been bumped down enough not to show up anymore in the RDF backend. Still, when a post with <li> thingies shows up and it breaks down in the middle of a <li>, then the problem will return.
     
  4. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Ah, that could prove to be quite troublesome. EP Will need to look into this when he gets back.

    I'm sure that the <notes> tag is used for Kipfolio so it can't be killed. Although just stripping tags from getting in there should be a possibility.
     
  5. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    I was thinking, that there should be no character limit in the <notes></notes> tags, that would eliminate the errors I got. Then you could put character limits in the application requesting the RDF feed. (I hope I make sense here)
     
  6. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    No matter how much you limit it, somewhere down the line a tag will likely slip in. Just removing the tags should sort it out.
     
  7. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,589
    Location:
    Copenhagen, Denmark
    I have been trying to modify the script to remove the tags, I will try and sort it when I get home, I would really like you php gurus help on this one :D
     
  8. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
  9. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Oh, what is the notes line actually used for? removing the tags may screw things up dependant on its use..
     
  10. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
  11. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    I was going to suggest that, but thought that when parsed (this is why I asked where it's used.) you'd get the <>'s rather than the actual tags..
     
  12. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    You mean <notes></notes>?, that is where the actual news post is.

    Yeah, but you can change that back with html_entity_decode().
     
  13. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,589
    Location:
    Copenhagen, Denmark
    Yeah I mean ideally I would like to remove all vbcode and all html tags.
    I mean't to do it a long time ago actually ;)

    I'll post the relevent code and have a look myself when I get home.
     
  14. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,589
    Location:
    Copenhagen, Denmark
    Ok, various tags have been stripped out.
    Chances are we missed a few, but I will deal with those as they appear!