Package: nanourl
Version: 0.1-7
Severity: normal
As shipped, nanourl can't support GET requests, so tricks like creating a
Firefox bookmark like this:
javascript:void(location.href='http://server.com/nanourl/create.php?url='+location.href)
to support automatic generation of URLs don't work. The trivial patch
attached allows GET URLs to work although it prefers any information coming
in via POST.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages nanourl depends on:
ii apache 1.3.34-4 versatile, high-performance HTTP s
ii apache2-mpm-prefork [apache2] 2.2.3-3 Traditional model for Apache HTTPD
ii mysql-client-5.0 [mysql-clien 5.0.24a-5 mysql database client binaries
ii php4 4:4.4.4-1 server-side, HTML-embedded scripti
ii php4-mysql 4:4.4.4-1 MySQL module for php4
nanourl recommends no packages.
-- no debconf information
--- create.php.orig 2006-11-28 14:00:37.000000000 -0500
+++ create.php 2006-11-28 14:01:13.000000000 -0500
@@ -16,6 +16,10 @@
include('nanourl.conf');
$newurl = $_POST['url'];
+ if(!$newurl)
+ {
+ $newurl = $_GET['url'];
+ }
if($newurl)
{
if(! ($connection = @ mysql_connect($nanourlHost, $nanourlUser,
$nanourlPassword)) ) {