Title: [183483] trunk/LayoutTests
- Revision
- 183483
- Author
- bfulg...@apple.com
- Date
- 2015-04-28 10:05:30 -0700 (Tue, 28 Apr 2015)
Log Message
[Win] PHP scripts fail if HTTP_ORIGIN is not set.
https://bugs.webkit.org/show_bug.cgi?id=144333
Rubberstamped by Brady Eidson.
* http/tests/security/resources/cors-post-redirect-target.php: Check
that HTTP_ORIGIN key exists before using it to avoid PHP error.
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (183482 => 183483)
--- trunk/LayoutTests/ChangeLog 2015-04-28 17:05:00 UTC (rev 183482)
+++ trunk/LayoutTests/ChangeLog 2015-04-28 17:05:30 UTC (rev 183483)
@@ -1,3 +1,13 @@
+2015-04-28 Brent Fulgham <bfulg...@apple.com>
+
+ [Win] PHP scripts fail if HTTP_ORIGIN is not set.
+ https://bugs.webkit.org/show_bug.cgi?id=144333
+
+ Rubberstamped by Brady Eidson.
+
+ * http/tests/security/resources/cors-post-redirect-target.php: Check
+ that HTTP_ORIGIN key exists before using it to avoid PHP error.
+
2015-04-28 Andy Estes <aes...@apple.com>
Add expectations for tests added in r183428 and r183450.
Modified: trunk/LayoutTests/http/tests/security/resources/cors-post-redirect-target.php (183482 => 183483)
--- trunk/LayoutTests/http/tests/security/resources/cors-post-redirect-target.php 2015-04-28 17:05:00 UTC (rev 183482)
+++ trunk/LayoutTests/http/tests/security/resources/cors-post-redirect-target.php 2015-04-28 17:05:30 UTC (rev 183483)
@@ -2,7 +2,7 @@
header("Cache-Control: no-store");
$sawOrigin = false;
-$originHeader = $_SERVER['HTTP_ORIGIN'];
+$originHeader = isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP_ORIGIN'] : null;
if ($originHeader) {
echo "Origin header value: $originHeader";
$sawOrigin = true;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes