Printers: Don't allow "/" in printer name

Remove "/" from allowed characters so that models which contain
this character can be added successfully (#661774).
This commit is contained in:
Marek Kasik 2011-11-08 13:07:03 +01:00
parent 6665b60422
commit e5747afe41

View file

@ -58,7 +58,7 @@
#define SCP_PATH "/org/fedoraproject/Config/Printing" #define SCP_PATH "/org/fedoraproject/Config/Printing"
#define SCP_IFACE "org.fedoraproject.Config.Printing" #define SCP_IFACE "org.fedoraproject.Config.Printing"
#define ALLOWED_CHARACTERS "abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/" #define ALLOWED_CHARACTERS "abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"
static void pp_new_printer_dialog_hide (PpNewPrinterDialog *pp); static void pp_new_printer_dialog_hide (PpNewPrinterDialog *pp);
static void actualize_devices_list (PpNewPrinterDialog *pp); static void actualize_devices_list (PpNewPrinterDialog *pp);