Closed Bug 29284 Opened 26 years ago Closed 26 years ago

Unescaped javascript URL corrupts localstore.rdf

Categories

(Core Graveyard :: RDF, defect, P2)

All
Mac System 8.5
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sfraser_bugs, Assigned: waterson)

Details

Attachments

(2 files)

Somehow, I ended up with this line in my localstore.rdf: <RDF:Description about="javascript:if(sint0002 = prompt('Bug Number:','')) location.href="http://bugzilla.mozilla.org/show_bug.cgi?id=" + sint0002;"> <open>true</open> </RDF:Description> It seems that the URL needs to be escaped, to encode the quotes.
Attached file localstore.rdf file
This bug causes bad things to happen on startup for me.
I need to use the nsURLEscape code. I think what I have in there is home-grown right now. Thanks for wiping my chin, sfraser.
Status: NEW → ASSIGNED
Target Milestone: M15
I'm having some type of problem where my localstore.rdf is not being read in (at least correctly) or saved at exit. Seems to be creating it on the fly everytime. I'm not as smart as simon, so I can't tell what the problem is. If I rename the file, then things work swell again. This is probably a completely different bug, let me know. I'll attach the file that hosed me.
Target Milestone: M15 → M16
Priority: P3 → P2
fixed
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
verified
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: