Skip to content

Commit

Permalink
Fix to use a new sub to test for input
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Aug 18, 2022
1 parent 98b38aa commit a36311d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions authentic-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ sub theme_remote_version
my $error;
my $installed_version_devel = theme_version('version') =~ /alpha|beta|RC/;

if (($theme_config{'settings_sysinfo_theme_updates'} eq 'true' || $data) && &webmin_user_is_admin() && $in =~ /xhr-/) {
if (($theme_config{'settings_sysinfo_theme_updates'} eq 'true' || $data) && &webmin_user_is_admin() && post_has('xhr-')) {
if (($tconfig{'beta_updates'} eq '1' || $force_beta_check || $installed_version_devel) && !$force_stable_check) {
if (!$nocache) {
$remote_version = theme_cached('version-theme-development');
Expand Down Expand Up @@ -1802,7 +1802,7 @@ sub get_theme_user_link
sub get_xhr_request
{

if ($in =~ /xhr-/) {
if (post_has('xhr-')) {
head();

if ($in{'xhr-settings'} eq '1') {
Expand Down

0 comments on commit a36311d

Please sign in to comment.