diff --git a/contrib/bulk_add/main.php b/contrib/bulk_add/main.php index 5ea1651f..cc0bb2c4 100644 --- a/contrib/bulk_add/main.php +++ b/contrib/bulk_add/main.php @@ -36,6 +36,7 @@ class BulkAdd extends SimpleExtension { if(file_exists($tmpname)) { global $user; $pathinfo = pathinfo($filename); + if(!array_key_exists('extension', $pathinfo)) return; $metadata['filename'] = $pathinfo['basename']; $metadata['extension'] = $pathinfo['extension']; $metadata['tags'] = $tags; diff --git a/contrib/simpletest/main.php b/contrib/simpletest/main.php index 9240b258..da656203 100644 --- a/contrib/simpletest/main.php +++ b/contrib/simpletest/main.php @@ -20,6 +20,7 @@ class ShimmieWebTestCase extends WebTestCase { $url = "http://".$_SERVER["HTTP_HOST"].get_base_href().'/'.make_link($page); $url = str_replace("/./", "/", $url); $this->get($url); + $this->assertNoText(".php on line"); } protected function log_in_as_user() { $this->get_page('post/list');