[wp-trac] [WordPress Trac] #2843: bad regex pattern in
wp-includes/vars.php
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 21 02:00:57 GMT 2006
#2843: bad regex pattern in wp-includes/vars.php
----------------------------+-----------------------------------------------
Reporter: herr_ernst | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Administration | Version:
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
wp-includes/vars.php
Line 4-6 is like:
{{{
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
$pagenow = $self_matches[1];
}
}}}
which should be more like
{{{
if (preg_match('#([^/]+\.php$)#', $PHP_SELF, $self_matches)) {
$pagenow = $self_matches[1];
}
}}}
because i had "php" in the path, so the variable $pagenow was set wrong
and it couldnt find some files
my first bug ever discovered and submitted, so i hope i have not made too
many mistakes...
--
Ticket URL: <http://trac.wordpress.org/ticket/2843>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list