pike.git
/
src
/
modules
/
_Roxen
/
roxen.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/_Roxen/roxen.c:381:
*! %uXXXX syntax. Treats %UXXXX as %uXXXX. It will treat '+' as '+' *! and not ' ', so form decoding needs to replace that in a second *! step. */ { int proc = 0; int size_shift; PCHARP foo, end; struct string_builder newstr;
-
if (!args || Pike_sp[-args]
.type
!= PIKE_T_STRING)
+
if (!args ||
TYPEOF(
Pike_sp[-args]
)
!= PIKE_T_STRING)
Pike_error("Invalid argument to http_decode_string(string).\n"); foo = MKPCHARP_STR(Pike_sp[-args].u.string); end = ADD_PCHARP(foo, Pike_sp[-args].u.string->len); size_shift = Pike_sp[-args].u.string->size_shift; /* Count '%' and wide characters. * * proc counts the number of characters that are to be removed.