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()
254
254
{
255
255
$ path = !empty ($ this ->info ['path ' ]) ? '/ ' .implode ('/ ' , $ this ->info ['path ' ]).'/ ' : '/ ' ;
256
256
257
- if (! empty ($ this ->info ['file ' ])) {
257
+ if (isset ($ this ->info ['file ' ])) {
258
258
$ path .= $ this ->info ['file ' ];
259
259
260
- if (! empty ($ this ->info ['extension ' ])) {
260
+ if (isset ($ this ->info ['extension ' ])) {
261
261
$ path .= '. ' .$ this ->info ['extension ' ];
262
262
}
263
263
}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ public function testParser()
8
8
'http://vimeo.com//69912181? ' => 'http://vimeo.com/69912181 ' ,
9
9
'http://vimeo.com//69912181 ' => 'http://vimeo.com/69912181 ' ,
10
10
'http://vimeo.com/69912181 ' => 'http://vimeo.com/69912181 ' ,
11
+ 'https://www.tumblr.com/oembed/1.0 ' => 'https://www.tumblr.com/oembed/1.0 ' ,
11
12
];
12
13
13
14
foreach ($ urls as $ url => $ expected_url ) {
You can’t perform that action at this time.
0 commit comments