OSDN Git Service

Refined parameter validation code. Parameters in the "--param=value" format are now...
authorlordmulder <mulder2@gmx.de>
Wed, 14 Oct 2015 19:21:20 +0000 (21:21 +0200)
committerlordmulder <mulder2@gmx.de>
Wed, 14 Oct 2015 19:21:20 +0000 (21:21 +0200)
src/version.h
src/win_addJob.cpp

index 9e22270..8bb15b4 100644 (file)
@@ -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)
 
index 70cdbf7..ec47807 100644 (file)
@@ -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)
                                                {