Changed regexp to allow for no crlf before boundaries.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1227 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
e56123b8c0
commit
fc7bb6803e
|
@ -446,7 +446,7 @@ int RemoteCamera::GetResponse()
|
|||
if ( !content_expr )
|
||||
{
|
||||
char content_pattern[256] = "";
|
||||
snprintf( content_pattern, sizeof(content_pattern), "^(.+?)(?:\r?\n){1,2}?(?:--)?%s\r?\n", content_boundary );
|
||||
snprintf( content_pattern, sizeof(content_pattern), "^(.+?)(?:\r?\n)*(?:--)?%s\r?\n", content_boundary );
|
||||
content_expr = new RegExpr( content_pattern, PCRE_DOTALL );
|
||||
}
|
||||
if ( content_expr->Match( buffer, buffer.Size() ) == 2 )
|
||||
|
|
Loading…
Reference in New Issue