Public bug reported:

Binary package hint: notify-osd

notify-osd 0.9.9-0ubuntu1, Ubunt Jaunty

1. notify-send "test" "I love fish ><>"

What happens: A bubble appears with a title "test", and body text "I love fish 
>".
What should happen: A bubble appears with a title "test", and body text "I love 
fish ><>".

>From <https://wiki.ubuntu.com/NotifyOSD#sanitizing>: "If the text
contains a < character that is immediately followed by a letter or by a
/ character, and a > character occurs later in the string, the sequence
from that < character to the soonest-following > character inclusive
should be treated as an HTML tag and removed."

Here, the < character is *not* immediately followed by a letter or by a
/ character, but Notify OSD is treating the string from < to > as an
HTML tag anyway. It shouldn't do that.

** Affects: notify-osd (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- "<)))>" is wrongly treated as an HTML tag
+ "<>" is wrongly treated as an HTML tag

** Description changed:

  Binary package hint: notify-osd
  
  notify-osd 0.9.9-0ubuntu1, Ubunt Jaunty
  
- 1. notify-send "test" "I love fish ><)))>"
+ 1. notify-send "test" "I love fish ><>"
  
  What happens: A bubble appears with a title "test", and body text "I love 
fish >".
- What should happen: A bubble appears with a title "test", and body text "I 
love fish ><)))>".
+ What should happen: A bubble appears with a title "test", and body text "I 
love fish ><>".
  
  From <https://wiki.ubuntu.com/NotifyOSD#sanitizing>: "If the text
  contains a < character that is immediately followed by a letter or by a
  / character, and a > character occurs later in the string, the sequence
  from that < character to the soonest-following > character inclusive
  should be treated as an HTML tag and removed."
  
  Here, the < character is *not* immediately followed by a letter or by a
  / character, but Notify OSD is treating the string from < to > as an
  HTML tag anyway. It shouldn't do that.

-- 
"<>" is wrongly treated as an HTML tag
https://bugs.launchpad.net/bugs/356556
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to