diff options
author | ozhozh <ozhozh@12232710-3e20-11de-b438-597f59cd7555> | 2010-06-12 21:01:04 +0400 |
---|---|---|
committer | ozhozh <ozhozh@12232710-3e20-11de-b438-597f59cd7555> | 2010-06-12 21:01:04 +0400 |
commit | a45575f6ab86dba43d101c21c645d44a59280e5c (patch) | |
tree | cf7e7b4656fe739054ef2c2a2d8577fba7ec541c /yourls-go.php | |
parent | 58a52d65cbc784704c42a48ec7deda2609c0e14e (diff) |
Change in logic: now all request are handled by PHP in yourls-loader.php instead of relying on .htaccess. Fixes issue 358.
git-svn-id: http://yourls.googlecode.com/svn/trunk@393 12232710-3e20-11de-b438-597f59cd7555
Diffstat (limited to 'yourls-go.php')
-rw-r--r-- | yourls-go.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yourls-go.php b/yourls-go.php index bf7756fa..f8ccdbd2 100644 --- a/yourls-go.php +++ b/yourls-go.php @@ -2,9 +2,10 @@ define('YOURLS_GO', true);
require_once( dirname(__FILE__).'/includes/load-yourls.php' );
-// Variables
-$id = ( isset( $_GET['id'] ) ? $_GET['id'] : '' );
-$keyword = yourls_sanitize_string( $id );
+// Variables should be defined in yourls-loader.php, if not try GET request (old behavior of yourls-go.php)
+if( !isset( $keyword ) && isset( $_GET['id'] ) )
+ $keyword = $_GET['id'];
+$keyword = yourls_sanitize_string( $keyword );
// First possible exit:
if ( !$keyword ) {
@@ -42,4 +43,3 @@ if( !empty($url) ) { }
}
exit();
-?>
\ No newline at end of file |