Fixed ?next=<url> argument for require_active_login
It now includes the full URI, including GET args, not just the path.
This commit is contained in:
@@ -25,12 +25,13 @@ _log = logging.getLogger(__name__)
|
||||
|
||||
PLUGIN_DIR = os.path.dirname(__file__)
|
||||
|
||||
config = pluginapi.get_config(__name__)
|
||||
|
||||
def setup_plugin():
|
||||
config = pluginapi.get_config(__name__)
|
||||
|
||||
_log.info('Setting up API...')
|
||||
|
||||
_log.debug('API config: {0}'.format(config))
|
||||
|
||||
routes = [
|
||||
Route('mediagoblin.plugins.api.test', '/api/test',
|
||||
controller='mediagoblin.plugins.api.views:api_test'),
|
||||
|
||||
@@ -33,6 +33,8 @@ from mediagoblin.media_types import sniff_media, InvalidFileType, \
|
||||
from mediagoblin.plugins.api.tools import api_auth, get_entry_serializable, \
|
||||
json_response
|
||||
|
||||
from mediagoblin.plugins.api import config
|
||||
|
||||
_log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user