Skip to content
Snippets Groups Projects
Commit 72b7faac authored by Brett Bieber's avatar Brett Bieber
Browse files

Add check for trailing slash.

parent e6c3d2ab
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,14 @@ if (isset($_GET['uri'])
<div class="clear">
<pre>
<?php
if (!empty($uri)) {
$parts = parse_url($uri);
if (!isset($parts['path'])) {
echo '<h2>tsk tsk. A trailing slash is always required. Didn\'t your mother ever teach you what a web address is?</h2>';
unset($uri);
}
}
if (!empty($uri)) {
$assessment = new UNL_WDN_Assessment($uri, $db);
$action = 'rescan';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment