summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorerdgeist <>2007-01-06 22:24:09 +0000
committererdgeist <>2007-01-06 22:24:09 +0000
commit17c21a0bc4394ac6f0649b4b9c535554a0d8ace0 (patch)
treec8297c00b75b0cc5757c36f81561f8d7e26bf991 /opentracker.c
parente7532408b6ffb91ee366075aba4ef2a9ab74e3ed (diff)
Apply some limits
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c
index b7c1f6a..124bedc 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -233,6 +233,7 @@ e400:
233 if(!byte_diff(data,7,"numwant")) { 233 if(!byte_diff(data,7,"numwant")) {
234 size_t len = scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_VALUE ); 234 size_t len = scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_VALUE );
235 if( ( len <= 0 ) || scan_fixed_int( data, len, &numwant ) ) goto e404; 235 if( ( len <= 0 ) || scan_fixed_int( data, len, &numwant ) ) goto e404;
236 if( numwant > 200 ) numwant = 200;
236 } else if(!byte_diff(data,7,"compact")) { 237 } else if(!byte_diff(data,7,"compact")) {
237 size_t len = scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_VALUE ); 238 size_t len = scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_VALUE );
238 if( ( len <= 0 ) || scan_fixed_int( data, len, &tmp ) ) goto e404; 239 if( ( len <= 0 ) || scan_fixed_int( data, len, &tmp ) ) goto e404;