art-web r564 - branches/art-hub
- From: thos svn gnome org
- To: svn-commits-list gnome org
- Subject: art-web r564 - branches/art-hub
- Date: Sun, 7 Dec 2008 18:33:59 +0000 (UTC)
Author: thos
Date: Sun Dec 7 18:33:59 2008
New Revision: 564
URL: http://svn.gnome.org/viewvc/art-web?rev=564&view=rev
Log:
Support GET parameters for download controller
Modified:
branches/art-hub/download
Modified: branches/art-hub/download
==============================================================================
--- branches/art-hub/download (original)
+++ branches/art-hub/download Sun Dec 7 18:33:59 2008
@@ -6,7 +6,10 @@
// superglobal stuff
$request = $_SERVER["PATH_INFO"];
-list($foo,$section,$category,$download_num,$filename) = explode("/", $request);
+if (array_key_exists ('d', $_GET))
+ list($foo,$section,$category,$download_num,$filename) = explode("/", $_GET['d']);
+else
+ list($foo,$section,$category,$download_num,$filename) = explode("/", $request);
/* make sure that download_num is a number, and not some SQL command */
$download_num = validate_input_regexp_error ($download_num, '^[0-9]+$');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]