| Index: Source/core/inspector/ContentSearchUtils.cpp
|
| diff --git a/Source/core/inspector/ContentSearchUtils.cpp b/Source/core/inspector/ContentSearchUtils.cpp
|
| index ca8a2ac71add76f5324b394fbeb26c042c80aed5..473968b02467f180f0687fd24ce17f7a47eceae6 100644
|
| --- a/Source/core/inspector/ContentSearchUtils.cpp
|
| +++ b/Source/core/inspector/ContentSearchUtils.cpp
|
| @@ -159,12 +159,16 @@ static String findMagicComment(const String& content, const String& name, MagicC
|
| String match = commentType == CSSMagicComment
|
| ? content.substring(urlPos, closingCommentPos - urlPos)
|
| : content.substring(urlPos);
|
| +
|
| + size_t newLine = match.find("\n");
|
| + if (newLine != kNotFound)
|
| + match = match.substring(0, newLine);
|
| match = match.stripWhiteSpace();
|
|
|
| - String disallowedChars("\"' \t\n\r");
|
| + String disallowedChars("\"' \t");
|
| for (unsigned i = 0; i < match.length(); ++i) {
|
| if (disallowedChars.find(match[i]) != kNotFound)
|
| - return match.substring(0, i);
|
| + return "";
|
| }
|
|
|
| return match;
|
|
|