Re: building a debian package (and a random buxfix)
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Perlbal > Re: building a debian package (and a random buxfix)




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

    Re: building a debian package (and a random buxfix)  


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


 
01-21-07 12:11 PM

On Sat, Jan 20, 2007 at 04:51:20PM -0800, Jonathan Steinert wrote:
> And then it should say "Done" and you can do
> $ dpkg-buildpackage -rfakeroot

I've built various debian packages of perlbal recently, but the
changelog in SVN has a version number of 1.41 (whereas we're currently
on at least 1.53 at the moment) - it might be worth updating that
before you build, so as not to confuse yourself later on.

Is there any chance somebody with commit access can keep the changelog
up-to-date? Pavel? (or perhaps adds a script that gets the latest
version number from CHANGES on build...)


Oh, and a minor bug fix, or at least a request for comments on one; We
serve a number of files in directories called things like
'blah...234089', and can't through the perlbal web server as-is. I'm
using the following fix (ie. Don't just check for two '.'s, but make
sure it has slashes around it). Is there anything obviously worse with
this from a security point of view?

 ========================================
===========================
--- lib/Perlbal/ClientHTTPBase.pm       (revision 623)
+++ lib/Perlbal/ClientHTTPBase.pm       (working copy)
@@ -362,7 +362,7 @@
return 1 if $self->{service}->run_hook('start_serve_request', $self, \$
uri);

# don't allow directory traversal
-    if ($uri =~ /\.\./ || $uri !~ m!^/!) {
+    if ($uri =~ /\/\.\.\// || $uri !~ m!^/!) {
return $self->_simple_response(403, "Bogus URL");
}

Best wishes,
Jeremy







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:45 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