Closed (won't fix)
Project:
Drupal core
Version:
5.10
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2008 at 22:26 UTC
Updated:
22 Jun 2011 at 00:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedWidening the issue:
Comment #2
gpk commentedHmm I wonder, when an expression is used to determine the file to include_once or require_once ... whether it always properly anchored...
Comment #3
gpk commentedIn 5.x, as well as the unanchored
include_once 'includes/install.inc';on lines 62 and 99 of database.mysql.inc, there also looks to be a problem on line 74 of color.module which hasinclude $file;but $file will begin with "themes" or "sites" rather than "." or "/". Changing it toinclude "./$file";should fix that. Should the "include" also be changed to "include_once"? (There's another straight "include" on phptemplate.engine line 412).Also there are a couple of places that use
include_once(<file>)syntax, but as that's not a bug it don't need fixing I guess.A bit of grepping revealed a few further places where the filename referenced by include_once or require_once is a variable. However it looks as though the variable begins with './' in these cases. For reference they are:
install.php:416
module.inc:229
image.inc:36
database.inc:118
install.inc:271
install.inc:687
install.inc:699
install.inc:727
Comment #4
gpk commentedLooks like there may also be many more places with this problem in 6.x, e.g. 2 require_once's in menu.inc http://api.drupal.org/api/file/includes/menu.inc/6/source (highlighted by http://drupal.org/node/332124).
Comment #5
greggles@gpk - how does this look?
@everyone else? test? please?
Comment #6
gregglesoooops
I'm an idiot and was trying to attach this to #331357: Requires are unanchored.
Comment #7
dpearcefl commentedConsidering the time elapsed between now and the last comment plus the fact that D5 is no longer supported, I am closing this ticket.