Skip to content

Commit 374801b

Browse files
markrandallderickr
authored andcommitted
Fix: PHP files inside images/
1 parent 27cb0cc commit 374801b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

public/images/elephpants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once __DIR__ . '/../include/prepend.inc';
3+
require_once __DIR__ . '/../../include/prepend.inc';
44

55
$now = $_SERVER["REQUEST_TIME"];
66
if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])) {

public/images/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
// Simulate a /images shortcut call (which will lead to a manual page)
44
$_SERVER['REQUEST_URI'] = '/images';
5-
require_once __DIR__ . '/../include/prepend.inc';
5+
require_once __DIR__ . '/../../include/prepend.inc';
66
require_once __DIR__ . '/../error.php';

0 commit comments

Comments
 (0)