Browse Source

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

Yannick Warnier 7 years ago
parent
commit
c94f7cf2f9
1 changed files with 1 additions and 1 deletions
  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();