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:
stan 2005-01-19 09:38:53 +00:00
parent e56123b8c0
commit fc7bb6803e
1 changed files with 1 additions and 1 deletions

View File

@ -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 )