Plugin Directory

Changeset 2067337


Ignore:
Timestamp:
04/11/2019 04:03:41 PM (7 years ago)
Author:
thundersnow
Message:

fix token leakage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • yext/trunk/yext.php

    r1779119 r2067337  
    4040
    4141function widgets_serving_host() {
    42   $host = @$_GET['host'];
    43   if (!$host) {
    44     $host = @$_ENV['YEXT_WIDGETS_SERVING_HOST'];
    45   }
     42  $host = @$_ENV['YEXT_WIDGETS_SERVING_HOST'];
    4643  if (!$host) {
    4744    return array('sites.yext.com');
     
    5148
    5249function widgets_storm_host() {
    53   $host = @$_GET['host'];
    54   if (!$host) {
    55     $host = @$_ENV['YEXT_WIDGETS_STORM_HOST'];
    56   }
     50  $host = @$_ENV['YEXT_WIDGETS_STORM_HOST'];
    5751  if (!$host) {
    5852    return "www.yext.com/w";
Note: See TracChangeset for help on using the changeset viewer.