Permalink
Browse files

Fixed #1465

  • Loading branch information...
1 parent f4b4d39 commit 8f1ec4e87c58e60e7fd865eabc6a1ab2b721729c @abrookbanks abrookbanks committed Jan 23, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/cubecart.class.php
@@ -242,7 +242,7 @@ public function loadPage() {
*/
foreach ($GLOBALS['hooks']->load('class.cubecart.construct.callback.gateway') as $hook) include $hook;
$folder = (isset($plugin)) ? 'plugins' : 'gateway';
- $module = $_GET['module'];
+ $module = preg_replace('#[^a-z0-9\_\-]#iU', '', $_GET['module']);
$class_file = CC_ROOT_DIR.'/modules/'.$folder.'/'.$module.'/'.'gateway.class.php';

0 comments on commit 8f1ec4e

Please sign in to comment.