Skip to content

Commit

Permalink
[#MODX-2410] Fixed issue with urlencoded context key on context edit …
Browse files Browse the repository at this point in the history
…page
  • Loading branch information
Shaun McCormick committed Oct 8, 2010
1 parent ccc81bb commit 01c5648
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/docs/changelog.txt
Expand Up @@ -4,6 +4,7 @@ development release, and is only shown to give an idea of what's currently in th

MODx Revolution 2.0.4-pl
====================================
- [#MODX-2410] Fixed issue with urlencoded context key on context edit page
- [#MODX-2407] Fixed issue where user settings were not respected in connectors in mgr
- [#MODX-2279] Fix bad AJAX response if database does not exist or can't be created during setup
- [#MODX-2404] Fixed issue with auto_menuindex and multiple contexts
Expand Down
3 changes: 2 additions & 1 deletion core/model/modx/processors/context/get.php
Expand Up @@ -13,7 +13,8 @@
if (!isset($scriptProperties['key'])) {
return $modx->error->failure($modx->lexicon('context_err_ns'));
}
$context = $modx->getObject('modContext',$scriptProperties['key']);
$contextKey = urldecode($scriptProperties['key']);
$context = $modx->getObject('modContext',$contextKey);
if ($context == null) {
return $modx->error->failure(sprintf($modx->lexicon('context_err_nfs'),$scriptProperties['key']));
}
Expand Down

0 comments on commit 01c5648

Please sign in to comment.