Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
737afcd5
Commit
737afcd5
authored
Oct 15, 2013
by
Guillaume Beraudo
Browse files
Fix outbound access.
parent
1eee5504
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/belle_sip_utils.c
View file @
737afcd5
...
...
@@ -827,7 +827,7 @@ static void print_noescapes_map(char noescapes[BELLE_SIP_NO_ESCAPES_SIZE], const
static
const
char
*
get_uri_username_noescapes
()
{
static
char
noescapes
[
BELLE_SIP_NO_ESCAPES_SIZE
]
=
{
0
};
if
(
noescapes
[
BELLE_SIP_NO_ESCAPES_SIZE
]
==
0
)
{
if
(
noescapes
[
BELLE_SIP_NO_ESCAPES_SIZE
-
1
]
==
0
)
{
// concurrent initialization should not be an issue
noescapes_add_list
(
noescapes
,
"[]/?:+$-_.!~*\()"
);
noescapes_add_alfanums
(
noescapes
);
...
...
@@ -839,7 +839,7 @@ static const char *get_uri_username_noescapes() {
static
const
char
*
get_uri_parameter_noescapes
()
{
static
char
noescapes
[
BELLE_SIP_NO_ESCAPES_SIZE
]
=
{
0
};
if
(
noescapes
[
BELLE_SIP_NO_ESCAPES_SIZE
]
==
0
)
{
if
(
noescapes
[
BELLE_SIP_NO_ESCAPES_SIZE
-
1
]
==
0
)
{
/*
uri-parameters = *( ";" uri-parameter)
uri-parameter = transport-param / user-param / method-p*aram
...
...
tester/belle_sip_uri_tester.c
View file @
737afcd5
...
...
@@ -200,7 +200,7 @@ static void test_escaped_parameter(void) {
belle_sip_uri_t
*
L_uri
=
belle_sip_uri_parse
(
"sip:toto@titi.com;pa%3Dram=aa%40bb;o%40"
);
char
*
l_raw_uri
=
belle_sip_object_to_string
(
BELLE_SIP_OBJECT
(
L_uri
));
belle_sip_object_unref
(
BELLE_SIP_OBJECT
(
L_uri
));
L_tmp
=
belle_sip_uri_parse
(
l_raw_uri
);
// should not work in the general case...
L_tmp
=
belle_sip_uri_parse
(
l_raw_uri
);
L_uri
=
BELLE_SIP_URI
(
belle_sip_object_clone
(
BELLE_SIP_OBJECT
(
L_tmp
)));
belle_sip_object_unref
(
BELLE_SIP_OBJECT
(
L_tmp
));
belle_sip_free
(
l_raw_uri
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment