diff options
| author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-01-16 08:11:39 +0000 | 
|---|---|---|
| committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-01-16 08:11:39 +0000 | 
| commit | 88088f6d0f44cd74c145007cbab7f20b82d534e2 (patch) | |
| tree | 1f82e3c412db4aa6ae64e4a9370a1f3fd9b3d15e /www/go.php | |
| parent | a4431ddc7d27afd3945645c02cef57ef2502743a (diff) | |
| download | semanticscuttle-88088f6d0f44cd74c145007cbab7f20b82d534e2.tar.gz semanticscuttle-88088f6d0f44cd74c145007cbab7f20b82d534e2.tar.bz2 | |
respect $shorturl configuration setting
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@577 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'www/go.php')
| -rw-r--r-- | www/go.php | 7 | 
1 files changed, 7 insertions, 0 deletions
| @@ -12,6 +12,13 @@   */  require_once '../src/SemanticScuttle/header.php'; +if (!$GLOBALS['shorturl']) { +    header('HTTP/1.0 500 Internal Server Error'); +    header('Content-Type: text/plain'); +    echo 'Short URL service deactivated'; +    exit(); +} +  if (!isset($_SERVER['PATH_INFO'])) {      header('HTTP/1.0 400 Bad Request');      header('Content-Type: text/plain'); | 
