[javascriptlint-commit] SF.net SVN: javascriptlint:[274] trunk/www
Status: Beta
Brought to you by:
matthiasmiller
|
From: <mat...@us...> - 2009-10-08 09:41:34
|
Revision: 274
http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=274&view=rev
Author: matthiasmiller
Date: 2009-10-08 09:41:26 +0000 (Thu, 08 Oct 2009)
Log Message:
-----------
www: enable backwards-compatibility links
Modified Paths:
--------------
trunk/www/news.php
trunk/www/rss.php
Modified: trunk/www/news.php
===================================================================
--- trunk/www/news.php 2009-10-08 09:08:05 UTC (rev 273)
+++ trunk/www/news.php 2009-10-08 09:41:26 UTC (rev 274)
@@ -1,3 +1,7 @@
<?php
-// ?: Header("Location: /news/" . str_pad(int($_GET['id']), 3, "0"));
+$id = intval($_GET['id'], 10);
+if ($id)
+ Header('Location: /news/' . str_pad(strval($id), 3, '0', STR_PAD_LEFT));
+else
+ Header('Location: /news/');
?>
Modified: trunk/www/rss.php
===================================================================
--- trunk/www/rss.php 2009-10-08 09:08:05 UTC (rev 273)
+++ trunk/www/rss.php 2009-10-08 09:41:26 UTC (rev 274)
@@ -1,3 +1,3 @@
<?php
-// Header('Location: /news/index.rss');
+Header('Location: /news/index.rss');
?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|