Re: Question about pystaticfile.py

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
The code just above that talks about "sanitizing" the page_name.  I do it 
for a couple of reasons--but mostly so that I know I have a page_name 
that's a good-looking file name and is exactly what I'm looking for.  It's 
not wildly great code--there's a FIXME comment there to look into that 
later, but I never really did.

I didn't want staticdir to support directory hierarchies--I just wanted it 
to look for pages in one specific dir.

Also, my email address is in the plugin code towards the top.  Anyone who 
codes plugins should put their contact information in the code.  Sending 
email here is fine, though.  :)

/will


On Thu, 9 Sep 2004, Oscar Norlander wrote:

> Forgot the code:
>
>     if page_name.find("/") > 0:
>         page_name = page_name[page_name.rfind("/"):]
>
> On Thu, Sep 09, 2004 at 01:11:31PM +0200, Oscar Norlander wrote:
>> Hi
>>
>> I think this is targeted to Will (the creater of pystaticfile.py). I can only find his home page and not his email address. It seams that he is here a lot =).
>>
>> I.m using pystaticfile.py that he has coded for pybloxsom. I could not use pages in subdirectories of staticdir root. However I commented out these lines and I got it to work:
>>
>>
>>
>> However my question is if you wrote those lines for any particular reason. Do they provide with some special security against evil hackers?
>>
>> A pre-thank you Oscar N in Sweden
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by BEA Weblogic Workshop
>> FREE Java Enterprise J2EE developer tools!
>> Get your free copy of BEA WebLogic Workshop 8.1 today.
>> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
>> _______________________________________________
>> pyblosxom-users mailing list
>> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> pyblosxom-users mailing list
> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
>

-- 
whatever it is, you can find it at http://www.bluesock.org/~willg/
except Will--you can only see him in real life.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.