aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-04-06 18:58:30 +0200
committerjcid <devnull@localhost>2008-04-06 18:58:30 +0200
commit40334a7897e3b6f81ae957ae518e3e7afade32fe (patch)
treedb514b3dc7ba42eaa5fb65f00d3060fb6422118f /src/html.cc
parent7650ae10e77d0058fe617ef670bad60349b45fed (diff)
- Added dStr_memmem() to dlib.
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc
index 7b604c1a..15a7f726 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -4097,7 +4097,7 @@ static void Html_submit_form2(DilloHtml *html, DilloHtmlForm *form,
dStr_sprintf(boundary, "---------------------------%d%d%d",
rand(), rand(), rand());
dStr_truncate(boundary, 70);
- success = !strstr(DataStr->str, boundary->str);
+ success = (dStr_memmem(DataStr, boundary) == NULL);
}
dList_free(values);
dStr_truncate(DataStr, 0);