Parcourir la source

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

Yannick Warnier il y a 7 ans
Parent
commit
c94f7cf2f9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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();