Created: (MODPYTHON-216) Code for deriving base
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Created: (MODPYTHON-216) Code for deriving base




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Created: (MODPYTHON-216) Code for deriving base  
Graham Dumpleton (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-27-07 12:13 AM

Code for deriving base URL/directory for request using wrong value???
---------------------------------------------------------------------

Key: MODPYTHON-216
URL: https://issues.apache.org/jira/browse/MODPYTHON-216
Project: mod_python
Issue Type: Bug
Components: core
Affects Versions: 3.3
Reporter: Graham Dumpleton
Priority: Minor


In determine_context() of src/mod_python.c, the code pertaining to Directory
 has:

if (!strcmp(directory, "~")) {
directory = ap_getword_conf(p, &arg);
d_regex = ap_pregcomp(p, cmd->path, AP_REG_EXTENDED|USE_ICASE);
} else if (ap_is_matchexp(directory)) {
d_is_fnmatch = 1;
}

and that for Location has:

if (!strcmp(location, "~")) {
location = ap_getword_conf(p, &arg);
l_regex = ap_pregcomp(p, cmd->path, AP_REG_EXTENDED|USE_ICASE);
} else if (ap_is_matchexp(location)) {
l_is_fnmatch = 1;
}

In both cases, the pattern used to compile the regular expression is the val
ue of cmd->path.

These perhaps should be 'directory' and 'location' respectively, but then cm
d->path may be the same thing anyway.

No actual problems have been see with code because of this, but should be ve
rified anyway.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:39 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register