Fix for #40429.

Michael Bedy mjbedy at attbi.com
Sun Apr 28 02:36:55 BST 2002


Hi,

   Possible fix for 40429. Ok to check in?

Index: cssparser.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/css/cssparser.cpp,v
retrieving revision 1.208.2.2
diff -u -r1.208.2.2 cssparser.cpp
--- cssparser.cpp	2002/04/16 17:37:36	1.208.2.2
+++ cssparser.cpp	2002/04/28 01:34:12
@@ -2399,6 +2399,7 @@
         const QChar *nextP = curP;
         bool q = false;
         bool dq = false;
+        bool escape = false;
         if(*nextP=='\'')
             q=true;
         else if (*nextP=='\"')
@@ -2409,10 +2410,15 @@
                 last = true;
                 break;
             }
-            if((q&&*nextP=='\'') || (dq&&*nextP=='\"')){
+            if(escape == false && ((q&&*nextP=='\'') || (dq&&*nextP=='\"'))){
                 nextP++;
                 if(nextP >= endP) last= true;
                 break;
+            }
+            if (escape == true) {
+                escape = false;
+            } else if(*nextP=='\\') {
+                escape = true;
             }
         }
 

    Thanks,
        - Mike






More information about the kfm-devel mailing list