Title: [152673] trunk/Source/WebCore
- Revision
- 152673
- Author
- rn...@webkit.org
- Date
- 2013-07-15 16:42:36 -0700 (Mon, 15 Jul 2013)
Log Message
MediaFragmentURIParser::parseFragments shouldn't upconvert 8-bit string
https://bugs.webkit.org/show_bug.cgi?id=118692
Reviewed by Michael Saboff.
Merge https://chromium.googlesource.com/chromium/blink/+/2aa17cc56a807f7e05d386d6eb66cda25e6b0542.
* html/MediaFragmentURIParser.cpp:
(WebCore::MediaFragmentURIParser::parseFragments):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (152672 => 152673)
--- trunk/Source/WebCore/ChangeLog 2013-07-15 23:41:23 UTC (rev 152672)
+++ trunk/Source/WebCore/ChangeLog 2013-07-15 23:42:36 UTC (rev 152673)
@@ -1,3 +1,15 @@
+2013-07-15 Ryosuke Niwa <rn...@webkit.org>
+
+ MediaFragmentURIParser::parseFragments shouldn't upconvert 8-bit string
+ https://bugs.webkit.org/show_bug.cgi?id=118692
+
+ Reviewed by Michael Saboff.
+
+ Merge https://chromium.googlesource.com/chromium/blink/+/2aa17cc56a807f7e05d386d6eb66cda25e6b0542.
+
+ * html/MediaFragmentURIParser.cpp:
+ (WebCore::MediaFragmentURIParser::parseFragments):
+
2013-07-15 Kwang Yul Seo <sk...@company100.net>
NetworkStorageSession::createDefaultSession is only implemented by Soup
Modified: trunk/Source/WebCore/html/MediaFragmentURIParser.cpp (152672 => 152673)
--- trunk/Source/WebCore/html/MediaFragmentURIParser.cpp 2013-07-15 23:41:23 UTC (rev 152672)
+++ trunk/Source/WebCore/html/MediaFragmentURIParser.cpp 2013-07-15 23:42:36 UTC (rev 152673)
@@ -132,11 +132,10 @@
// a. Decode percent-encoded octets in name and value as defined by RFC 3986. If either
// name or value are not valid percent-encoded strings, then remove the name-value pair
// from the list.
- const UChar* fragmentStart = fragmentString.characters();
- String name = decodeURLEscapeSequences(String(fragmentStart + parameterStart, equalOffset - parameterStart));
+ String name = decodeURLEscapeSequences(fragmentString.substring(parameterStart, equalOffset - parameterStart));
String value;
if (equalOffset != parameterEnd)
- value = decodeURLEscapeSequences(String(fragmentStart + equalOffset + 1, parameterEnd - equalOffset - 1));
+ value = decodeURLEscapeSequences(fragmentString.substring(equalOffset + 1, parameterEnd - equalOffset - 1));
// b. Convert name and value to Unicode strings by interpreting them as UTF-8. If either
// name or value are not valid UTF-8 strings, then remove the name-value pair from the list.
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes