Menu

#1 Problem with data containing &

closed-fixed
nobody
None
5
2006-02-14
2005-03-09
Nick Burch
No

If you add some data containing an & symbol, things
look fine until you quit and reopen pwman. After
reopening, the & is missing from the string, as is
everything else after it

If you try to escape it, and enter &, you see &
in the string. Quit and re-open, and you see just &
followed by the rest of the text. Quit and reopen, and
you've lost the & and everything after it.

I guess the write code should escape and &'s it sees to
&. The read code seems quite happy with reading in
an &, and displaying a &.

Discussion

  • Nick Burch

    Nick Burch - 2005-03-09

    Logged In: YES
    user_id=157622

    Discovered it's quite an easy fix. Patch to pwlist.c is
    attached.

     
  • Nick Burch

    Nick Burch - 2005-03-09

    Patch to pwlist.c to use xmlEncodeSpecialChars()

     
  • Nick Burch

    Nick Burch - 2006-02-14

    Logged In: YES
    user_id=157622

    Fix applied to CVS

     
  • Nick Burch

    Nick Burch - 2006-02-14
    • status: open --> closed-fixed
     

Log in to post a comment.