bugGKSu - Bugs: bug #21052, "markup" in command in...


bug #21052: "markup" in command in su_ask_password's dialog message gets not escaped (patch)

Submitter:  dAniel hAhler <blueyed>
Submitted:  Wed 12 Sep 2007 09:32:04 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Wed 12 Sep 2007 09:32:04 PM UTC, original submission:  

The command passed to the dialogs in su_ask_password needs to get escaped, otherwise the following will happen:
$ LANG=C gksu '&'

(gksu:31720): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 3: Character ''' is not valid at the start of an entity name; the & character begins an entity; if this ampersand isn't supposed to be an entity, escape it as &amp;

See https://bugs.launchpad.net/ubuntu/+source/gksu/+bug/133639 for the bug reported in Ubuntu.

I'll attach a patch against SVN trunk.

dAniel hAhler <blueyed>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #13927:  g_markup_escape_text_for_command.patch added by blueyed (1KiB - text/x-diff - Updated patch to also fix the order in "Enter the password for %s to run the application %s")


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by blueyed (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-09-12 blueyed Attached File- Added g_markup_escape_text_for_command.patch, #13927
    2007-09-12 blueyed Attached File- Added g_markup_escape_text_for_command.patch, #13926

    Back to the top

    Powered by Savane 3.12