From fd044838f3ebb7cb9492aa958320bf60eb525dc8 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 19 Jul 2009 01:29:59 +0100 Subject: [PATCH] more testing --- contrib/bulk_add/main.php | 1 + contrib/simpletest/main.php | 1 + 2 files changed, 2 insertions(+) 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');