Unverified Commit 3ecc2a4e authored by Sarah Zakarias's avatar Sarah Zakarias Committed by GitHub

Url encode asset lookup key (#15171)

parent 545c292c
......@@ -223,7 +223,7 @@ abstract class CachingAssetBundle extends AssetBundle {
class PlatformAssetBundle extends CachingAssetBundle {
@override
Future<ByteData> load(String key) async {
final Uint8List encoded = UTF8.encoder.convert(key);
final Uint8List encoded = UTF8.encoder.convert(new Uri(path: key).path);
final ByteData asset =
await BinaryMessages.send('flutter/assets', encoded.buffer.asByteData());
if (asset == null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment