Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 519732
Collapse All | Expand All

(-)dansguardian-2.12.0.3/src/FOptionContainer.cpp (-7 lines)
Lines 304-316 Link Here
304
		violationbody="";
304
		violationbody="";
305
305
306
		threshold = findoptionI("threshold");
306
		threshold = findoptionI("threshold");
307
                // TODO: Implement a "findoptionO" and a version of
308
                // reality check which uses off_t, for large file support?
309
                max_upload_size = findoptionI("maxuploadsize");
310
                if (!realitycheck(max_upload_size, -1, 0, "maxuploadsize")) {
311
                        return false;
312
                }               // check its a reasonable value
313
                max_upload_size *= 1024;
314
307
315
		avadmin = findoptionS("avadmin");
308
		avadmin = findoptionS("avadmin");
316
		if (avadmin.length()==0) {
309
		if (avadmin.length()==0) {
(-)dansguardian-2.12.0.3/src/OptionContainer.cpp (+9 lines)
Lines 236-241 Link Here
236
		mailer = findoptionS("mailer");
236
		mailer = findoptionS("mailer");
237
#endif
237
#endif
238
	   
238
	   
239
                // TODO: Implement a "findoptionO" and a version of
240
                // reality check which uses off_t, for large file support?
241
                max_upload_size = findoptionI("maxuploadsize");
242
                if (!realitycheck(max_upload_size, -1, 0, "maxuploadsize")) {
243
                        return false;
244
                }               // check its a reasonable value
245
                if (max_upload_size > 0)
246
			max_upload_size *= 1024;
247
	   
239
		// the dansguardian.conf and pics files get amalgamated into one
248
		// the dansguardian.conf and pics files get amalgamated into one
240
		// deque.  They are only seperate files for clarity.
249
		// deque.  They are only seperate files for clarity.
241
250

Return to bug 519732