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


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

Submitted by:  dAniel hAhler <blueyed>
Submitted on:  Wed 12 Sep 2007 09:32:04 PM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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 File(s):

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
  • -unavailable- added by blueyed (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 12 Sep 2007 09:54:32 PM UTCblueyedAttached File-=>Added g_markup_escape_text_for_command.patch, #13927
    Wed 12 Sep 2007 09:32:04 PM UTCblueyedAttached File-=>Added g_markup_escape_text_for_command.patch, #13926

    Back to the top

    Powered by Savane 3.1-cleanup1