Lines 7001-7007
Link Here
|
7001 |
|
7001 |
|
7002 |
if (strcmp (name, "tp_sms_hostname") == 0) |
7002 |
if (strcmp (name, "tp_sms_hostname") == 0) |
7003 |
{ |
7003 |
{ |
7004 |
if (g_regex_match_simple ("^[0-9A-Za-z][0-9A-Za-z.-]*$", |
7004 |
if (g_regex_match_simple ("^[0-9A-Za-z][0-9A-Za-z.\\-]*$", |
7005 |
*data, 0, 0) |
7005 |
*data, 0, 0) |
7006 |
== FALSE) |
7006 |
== FALSE) |
7007 |
{ |
7007 |
{ |
Lines 49987-49994
Link Here
|
49987 |
*/ |
49987 |
*/ |
49988 |
languages_regex |
49988 |
languages_regex |
49989 |
= g_regex_new ("^(Browser Language|" |
49989 |
= g_regex_new ("^(Browser Language|" |
49990 |
"([a-z]{2,3})(_[A-Z]{2})?(@[[:alnum:]_-]+)?" |
49990 |
"([a-z]{2,3})(_[A-Z]{2})?(@[[:alnum:]_\\-]+)?" |
49991 |
"(:([a-z]{2,3})(_[A-Z]{2})?(@[[:alnum:]_-]+)?)*)$", |
49991 |
"(:([a-z]{2,3})(_[A-Z]{2})?(@[[:alnum:]_\\-]+)?)*)$", |
49992 |
0, 0, NULL); |
49992 |
0, 0, NULL); |
49993 |
match = g_regex_match (languages_regex, value, 0, NULL); |
49993 |
match = g_regex_match (languages_regex, value, 0, NULL); |
49994 |
g_regex_unref (languages_regex); |
49994 |
g_regex_unref (languages_regex); |
Lines 50572-50578
Link Here
|
50572 |
if (strcmp (uuid, SETTING_UUID_LSC_DEB_MAINTAINER) == 0) |
50572 |
if (strcmp (uuid, SETTING_UUID_LSC_DEB_MAINTAINER) == 0) |
50573 |
{ |
50573 |
{ |
50574 |
if (g_regex_match_simple |
50574 |
if (g_regex_match_simple |
50575 |
("^([[:alnum:]-_]*@[[:alnum:]-_][[:alnum:]-_.]*)?$", |
50575 |
("^([[:alnum:]\\-_]*@[[:alnum:]\\-_][[:alnum:]\\-_.]*)?$", |
50576 |
value, 0, 0) == FALSE) |
50576 |
value, 0, 0) == FALSE) |
50577 |
return 1; |
50577 |
return 1; |
50578 |
} |
50578 |
} |