core/API/DataTablePostProcessor.php 1 location
|
@@ 378-383 (lines=6) @@
|
375 |
|
public static function getLabelFromRequest($request) |
376 |
|
{ |
377 |
|
$label = Common::getRequestVar('label', array(), 'array', $request); |
378 |
|
if (empty($label)) { |
379 |
|
$label = Common::getRequestVar('label', '', 'string', $request); |
380 |
|
if (!empty($label)) { |
381 |
|
$label = array($label); |
382 |
|
} |
383 |
|
} |
384 |
|
|
385 |
|
$label = self::unsanitizeLabelParameter($label); |
386 |
|
return $label; |
plugins/CorePluginsAdmin/Controller.php 1 location
|
@@ 477-480 (lines=4) @@
|
474 |
|
{ |
475 |
|
$isAllowedToTroubleshootAsSuperUser = false; |
476 |
|
$salt = SettingsPiwik::getSalt(); |
477 |
|
if (!empty($salt)) { |
478 |
|
$saltFromRequest = Common::getRequestVar('i_am_super_user', '', 'string'); |
479 |
|
$isAllowedToTroubleshootAsSuperUser = ($salt == $saltFromRequest); |
480 |
|
} |
481 |
|
return $isAllowedToTroubleshootAsSuperUser; |
482 |
|
} |
483 |
|
|