Reply
Old March 24th, 2004 Top | #1
 
Glaanieboy's Avatar
OSNN Veteran Addict
Joined: March 2002
Location: The Netherlands
Posts: 2,626
Reputation: 270
Power: 150

Default RDF backend broken

See for yourself: http://www.osnn.net/modules.php?modn...end&action=rdf
Glaanieboy is offline   Reply With Quote
Old March 24th, 2004 Top | #2
 
Glaanieboy's Avatar
OSNN Veteran Addict
Joined: March 2002
Location: The Netherlands
Posts: 2,626
Reputation: 270
Power: 150

Default

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?
Glaanieboy is offline   Reply With Quote
Old March 24th, 2004 Top | #3
 
Glaanieboy's Avatar
OSNN Veteran Addict
Joined: March 2002
Location: The Netherlands
Posts: 2,626
Reputation: 270
Power: 150

Default

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.
Glaanieboy is offline   Reply With Quote
Old March 24th, 2004 Top | #4
 
SPeedY_B's Avatar
I may actually be insane.
Joined: March 2002
Location: Midlands, England
Posts: 15,800
Reputation: 2877
Power: 307

Default

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.
SPeedY_B is offline   Reply With Quote
Old March 24th, 2004 Top | #5
 
Glaanieboy's Avatar
OSNN Veteran Addict
Joined: March 2002
Location: The Netherlands
Posts: 2,626
Reputation: 270
Power: 150

Default

Originally Posted by SPeedY_B
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.
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)
Glaanieboy is offline   Reply With Quote
Old March 24th, 2004 Top | #6
 
SPeedY_B's Avatar
I may actually be insane.
Joined: March 2002
Location: Midlands, England
Posts: 15,800
Reputation: 2877
Power: 307

Default

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.
SPeedY_B is offline   Reply With Quote
Old March 24th, 2004 Top | #7

OSNN Folding Team  
Electronic Punk's Avatar
The Last High
Joined: December 2001
Location: London
Posts: 18,506
Blog Entries: 51
Reputation: 3652
Power: 346

Default

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

Electronic Punk is offline   Reply With Quote
Old March 24th, 2004 Top | #8
 
SPeedY_B's Avatar
I may actually be insane.
Joined: March 2002
Location: Midlands, England
Posts: 15,800
Reputation: 2877
Power: 307

Default

http://uk2.php.net/str_replace
SPeedY_B is offline   Reply With Quote
Old March 24th, 2004 Top | #9
 
SPeedY_B's Avatar
I may actually be insane.
Joined: March 2002
Location: Midlands, England
Posts: 15,800
Reputation: 2877
Power: 307

Default

Oh, what is the notes line actually used for? removing the tags may screw things up dependant on its use..
SPeedY_B is offline   Reply With Quote
Old March 24th, 2004 Top | #10

OSNN Folding Team  
Geffy's Avatar
OSNN Veteran Addict
Joined: March 2002
Location: United Kingdom
Posts: 7,805
Reputation: 1490
Power: 213

Default

http://uk2.php.net/htmlspecialchars <-- maybe


blogtumbloglastfmflickr#rubyonrails@twitter
"I could be replaced with a very small shell script"
Geffy is offline   Reply With Quote
Old March 25th, 2004 Top | #11
 
SPeedY_B's Avatar
I may actually be insane.
Joined: March 2002
Location: Midlands, England
Posts: 15,800
Reputation: 2877
Power: 307

Default

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..
SPeedY_B is offline   Reply With Quote
Old March 25th, 2004 Top | #12
 
Glaanieboy's Avatar
OSNN Veteran Addict
Joined: March 2002
Location: The Netherlands
Posts: 2,626
Reputation: 270
Power: 150

Default

Originally Posted by SPeedY_B
Oh, what is the notes line actually used for? removing the tags may screw things up dependant on its use..
You mean <notes></notes>?, that is where the actual news post is.

Originally Posted by SPeedY_B
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..
Yeah, but you can change that back with html_entity_decode().
Glaanieboy is offline   Reply With Quote
Old March 25th, 2004 Top | #13

OSNN Folding Team  
Electronic Punk's Avatar
The Last High
Joined: December 2001
Location: London
Posts: 18,506
Blog Entries: 51
Reputation: 3652
Power: 346

Default

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.

Electronic Punk is offline   Reply With Quote
Old April 13th, 2004 Top | #14

OSNN Folding Team  
Electronic Punk's Avatar
The Last High
Joined: December 2001
Location: London
Posts: 18,506
Blog Entries: 51
Reputation: 3652
Power: 346

Default

Ok, various tags have been stripped out.
Chances are we missed a few, but I will deal with those as they appear!

Electronic Punk is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Samba3] Using tdbsam backend to store user info Glaanieboy Linux & BSD 10 September 28th, 2004 2:30am
Broken Pages... XPerties Web Design & Coding 17 March 22nd, 2003 11:25pm
Neowin.net = Broken leebobs Green Room 8 March 1st, 2003 11:40pm
is DVD broken?!?!?! pHANTOMpHREAK Entertainment & Sports 4 December 4th, 2001 11:14pm