Sfoglia il codice sorgente

Learnpath: Fix issue in comparing document path with code path in document source validation before iframe - refs BT#13822

Yannick Warnier 7 anni fa
parent
commit
c94f7cf2f9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      main/lp/learnpath.class.php

+ 1 - 1
main/lp/learnpath.class.php

@@ -11877,7 +11877,7 @@ EOD;
         }
 
         if ($protocolFixApplied == false) {
-            if (strpos(api_get_path(WEB_CODE_PATH), $host) === false) {
+            if (strpos(api_get_path(WEB_PATH), $host) === false) {
                 // Check X-Frame-Options
                 $ch = curl_init();