discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=348a3be719b0c3980bbf9299067917d51abc88ab

commit 348a3be719b0c3980bbf9299067917d51abc88ab
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Nov 18 10:19:14 2016 -0500

    reject non-printable characters from lokker entry
    
    previously characters such as tab would be injected into the entry when 
pressed.
    this is the same check which is used in various other places in efl for 
string
    validation
---
 src/modules/lokker/lokker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/lokker/lokker.c b/src/modules/lokker/lokker.c
index d7a78d0..db9fb82 100644
--- a/src/modules/lokker/lokker.c
+++ b/src/modules/lokker/lokker.c
@@ -727,7 +727,7 @@ _lokker_cb_key_down(void *data EINA_UNUSED, int type 
EINA_UNUSED, void *event)
    else
      {
         /* here we have to grab a password */
-        if (ev->compose)
+        if (ev->compose && (ev->string[0] >= 0x20) && (ev->string[0] != 0x7f))
           {
              if (lokker_is_pin())
                {

-- 


Reply via email to