From f5a0bf69c1855b2f454344df797478f08d8baba2 Mon Sep 17 00:00:00 2001 From: lxnay Date: Fri, 24 Oct 2008 09:56:19 +0000 Subject: [PATCH] Entropy/Equo: - check if arguments passed by user are valid UTF8 git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2558 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- client/text_ui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/text_ui.py b/client/text_ui.py index 2e57e5d4f..df2a8ec1e 100644 --- a/client/text_ui.py +++ b/client/text_ui.py @@ -51,6 +51,9 @@ def package(options): _myopts = [] mytbz2paths = [] for opt in myopts: + if not Equo.entropyTools.is_valid_unicode(opt): + print_error(red(" %s." % (_("Malformed command"),) )) + return -10 if (opt == "--nodeps"): equoRequestDeps = False elif (opt == "--empty"):