Refined parameter validation code. Parameters in the "--param=value" format are now accepted.
This commit is contained in:
parent
3da3e72a6d
commit
6f5b3c4e4b
@ -26,7 +26,7 @@
|
||||
#define VER_X264_MAJOR 2
|
||||
#define VER_X264_MINOR 6
|
||||
#define VER_X264_PATCH 0
|
||||
#define VER_X264_BUILD 968
|
||||
#define VER_X264_BUILD 970
|
||||
|
||||
#define VER_X264_PORTABLE_EDITION (0)
|
||||
|
||||
|
@ -159,7 +159,11 @@ protected:
|
||||
{
|
||||
for(int i = 2; i < iter->length(); i++)
|
||||
{
|
||||
if((!iter->at(i).isLetter()) && (iter->at(i) != '-'))
|
||||
if((iter->at(i) == QLatin1Char('=')) && (i > 2) && (i + 1 < iter->length()))
|
||||
{
|
||||
break; /*to allow "--param=value" format*/
|
||||
}
|
||||
if((!iter->at(i).isLetter()) && ((iter->at(i) != QLatin1Char('-')) || (i < 3)))
|
||||
{
|
||||
if(m_notifier)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user