File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -254,10 +254,10 @@ public function getPath()
254254 {
255255 $ path = !empty ($ this ->info ['path ' ]) ? '/ ' .implode ('/ ' , $ this ->info ['path ' ]).'/ ' : '/ ' ;
256256
257- if (! empty ($ this ->info ['file ' ])) {
257+ if (isset ($ this ->info ['file ' ])) {
258258 $ path .= $ this ->info ['file ' ];
259259
260- if (! empty ($ this ->info ['extension ' ])) {
260+ if (isset ($ this ->info ['extension ' ])) {
261261 $ path .= '. ' .$ this ->info ['extension ' ];
262262 }
263263 }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ public function testParser()
88 'http://vimeo.com//69912181? ' => 'http://vimeo.com/69912181 ' ,
99 'http://vimeo.com//69912181 ' => 'http://vimeo.com/69912181 ' ,
1010 'http://vimeo.com/69912181 ' => 'http://vimeo.com/69912181 ' ,
11+ 'https://www.tumblr.com/oembed/1.0 ' => 'https://www.tumblr.com/oembed/1.0 ' ,
1112 ];
1213
1314 foreach ($ urls as $ url => $ expected_url ) {
You can’t perform that action at this time.
0 commit comments