summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSHelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/css/CSSHelper.cpp')
-rw-r--r--WebCore/css/CSSHelper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/WebCore/css/CSSHelper.cpp b/WebCore/css/CSSHelper.cpp
index a0daebd..e0ce7c3 100644
--- a/WebCore/css/CSSHelper.cpp
+++ b/WebCore/css/CSSHelper.cpp
@@ -79,8 +79,10 @@ String deprecatedParseURL(const String& url)
// Optimize for the likely case there there is nothing to strip.
if (l == length) {
int k;
+ // If the URL has any control characters in it, we have to strip them.
+ // '\r' (ascii value 13) is the largest control character.
for (k = 0; k < length; k++) {
- if (characters[k] > '\r')
+ if (characters[k] <= '\r')
break;
}
if (k == length)