[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Fix for #40429.
From: Michael Bedy <mjbedy () attbi ! com>
Date: 2002-04-28 1:36:55
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic