From 52d09886558361bd818182da9ddc204e83f618ba Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 11 Dec 2017 21:11:34 +0100 Subject: Use __DIR__ for relative include and require For uniformity, and to avoid having PHP searching in include_path. http://php.net/manual/function.include.php https://github.com/FreshRSS/FreshRSS/pull/1715 https://github.com/FreshRSS/FreshRSS/pull/1711#issuecomment-350581350 --- p/ext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p/ext.php') diff --git a/p/ext.php b/p/ext.php index 5c9f9125f..bb16d02d3 100644 --- a/p/ext.php +++ b/p/ext.php @@ -5,7 +5,7 @@ if (!isset($_GET['f']) || die(); } -require('../constants.php'); +require(__DIR__ . '/../constants.php'); /** * Check if a file can be served by ext.php. A valid file is under a -- cgit v1.2.3