summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/CSend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSend.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/CSend.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSend.cpp b/plugins/SendScreenshotPlus/src/CSend.cpp
index a2f8e51beb..f0c800004e 100644
--- a/plugins/SendScreenshotPlus/src/CSend.cpp
+++ b/plugins/SendScreenshotPlus/src/CSend.cpp
@@ -454,9 +454,12 @@ void CSend::Exit(unsigned int Result) {
const char* CSend::GetHTMLContent(char* str, const char* startTag, const char* endTag) {
char* begin=strstr(str,startTag);
if(!begin) return NULL;
- begin+=strlen(startTag);
- char* end=strstr(begin,endTag);
- if(end) *end=0;
+ begin+=strlen(startTag)-1;
+ for(; *begin!='>' && *begin; ++begin);
+ if(*begin){
+ char* end=strstr(++begin,endTag);
+ if(end) *end=0;
+ }
return begin;
}