Tim Weber | 12 Oct 17:56

Dropping qb maintainership

This is a copy of my blog article at:
   https://scytale.name/blog/2008/10/dropping-qb

------------------------------------------------------------

I have not blogged for months (although I'm pretty active at Twitter, 
you might want to check me out there). And now that you get some proof 
of life of me again, it's bad news: As of today, I'm dropping 
maintainership for my blogging software qb.

I've been thinking about this step since about July, and it doesn't 
seem likely that I'll find the time or the mood to continue working on 
qb in the foreseeable future. To be honest with you, code cleanup is 
not one of the most enjoyable things to do, and qb needs not only that 
but also serious refactoring in order to support new features, and 
I've got a more powerful approach in mind (which, yes, will mean new 
software coming up).

The current Git repository state has been exported to GitHub as a new 
project named qb. Anybody may take it from there, fork and develop it 
further. Since I have not found the time to add GPLv3 licensing text 
to the source files, I hereby declare qb's current state (commit 
9c28be6b0284045b28a7b01c70675ec6cc6e4759) to be licensed under the 
terms of the WTFPLv2. Have a lot of fun.

The will be updated accordingly somewhen in the next few days. The 
mailing list will be shut down in December. Thanks to everybody using 
and developing qb, it was fun working with you. There are no known 
security holes, you should be safe to leave your installation online 
for as long as you wish.
(Continue reading)

Uli | 4 May 18:08
Picon

[PATCH v2] Fix for lighttpd with empty $_SERVER['PATH_INFO']


It seems like on (my?) lighttpd $_SERVER['PATH_INFO'] is set, but empty
which results in qb always showing the front page.

Fix this by also checking for an empty PATH_INFO before using it.

Signed-off-by: Uli Schlachter <psychon@...>
---
 lib/qbURL.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/qbURL.php b/lib/qbURL.php
index 6f3e96f..3167af8 100644
--- a/lib/qbURL.php
+++ b/lib/qbURL.php
@@ -154,7 +154,7 @@ class qbURL {
 	public static function getVFile() {
 		$path = QB_URIPATH;
 		// PATH_INFO is set for Apache's "Alias" directive, it has precedence.
-		if (isset($_SERVER['PATH_INFO']))
+		if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] != '')
 			$path = $_SERVER['PATH_INFO'];
 		else if (qbString::startsWith(self::getHandler(), $path))
 			$path = substr($path, strlen(self::getHandler()));
--

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
G d- s:- a--- C+++>$ UL++>$ P L++>$ !E W++ !N o? K? w-- !O !M V? PS+ PE Y+
PGP++>+++ !t 5? !X !R-* tv+>- b+ DI->+ !D G e h+ r? y
------END GEEK CODE BLOCK------
(Continue reading)

Uli | 1 May 19:47
Picon

[PATCH] Fix qb on lighttpd (=Fix my blog)

I just noticed that on my blog, no matter what you click, you always get to the
front page which means *every* *single* *link* to some article was broken.

With some echo debugging I found out that $_SERVER['PATH_INFO'] is set, but
empty. Yay for lighttpd.

And no, I don't know nor do I care since when this is broken. But if you find it
out, tell me :).

diff --git a/lib/qbURL.php b/lib/qbURL.php
index 6f3e96f..2903367 100644
--- a/lib/qbURL.php
+++ b/lib/qbURL.php
@@ -154,7 +154,7 @@ class qbURL {
 	public static function getVFile() {
 		$path = QB_URIPATH;
 		// PATH_INFO is set for Apache's "Alias" directive, it has precedence.
-		if (isset($_SERVER['PATH_INFO']))
+		if (isset($_SERVER['PATH_INFO']) && !empty($_SERVER['PATH_INFO']))
 			$path = $_SERVER['PATH_INFO'];
 		else if (qbString::startsWith(self::getHandler(), $path))
 			$path = substr($path, strlen(self::getHandler()));
--

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
G d- s:- a--- C+++>$ UL++>$ P L++>$ !E W++ !N o? K? w-- !O !M V? PS+ PE Y+
PGP++>+++ !t 5? !X !R-* tv+>- b+ DI->+ !D G e h+ r? y
------END GEEK CODE BLOCK------

(Continue reading)


Gmane