|
@@ -1156,23 +1156,15 @@ char *HTTP_SnmpParam(uint32_t reqNum, char *bufIn, char *bufOut, uint16_t lenBuf
|
|
|
(void)reqNum;
|
|
|
|
|
|
|
|
|
- if (strstr(tempStr, "?_") != NULL) {
|
|
|
+ if (strstr(tempStr, "?_") == NULL) {
|
|
|
memset(bufOut, 0, SEND_BUF_MAX_LEN);
|
|
|
-
|
|
|
- return HTTP_GetTrapAccess(bufIn, lenBufIn, bufOut, lenBufOut);
|
|
|
- }
|
|
|
-
|
|
|
- else {
|
|
|
-
|
|
|
if (seclevel == USER) {
|
|
|
return 0;
|
|
|
}
|
|
|
HTTP_SetNotification(bufIn, lenBufIn);
|
|
|
-
|
|
|
- fs_open("/snmp.html", &file);
|
|
|
- *lenBufOut = file.len;
|
|
|
- return file.data;
|
|
|
}
|
|
|
+
|
|
|
+ return HTTP_GetTrapAccess(bufIn, lenBufIn, bufOut, lenBufOut);
|
|
|
}
|
|
|
|
|
|
|