cvs: pearweb /public_html release-upload.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sat, 14 May 2005 17:37:13 +0000 |
| Subject: | cvs: pearweb /public_html release-upload.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-31853@lists.php.net to get a copy of this message | ||
dufuz Sat May 14 13:37:13 2005 EDT
Modified files:
/pearweb/public_html release-upload.php
Log:
SCRIPT_NAME instead of PHP_SELF in couple of cases
http://cvs.php.net/diff.php/pearweb/public_html/release-upload.php?r1=1.62&r2=1.63&ty=u
Index: pearweb/public_html/release-upload.php
diff -u pearweb/public_html/release-upload.php:1.62 pearweb/public_html/release-upload.php:1.63
--- pearweb/public_html/release-upload.php:1.62 Tue May 3 15:42:23 2005
+++ pearweb/public_html/release-upload.php Sat May 14 13:37:13 2005
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: release-upload.php,v 1.62 2005/05/03 19:42:23 cellog Exp $
+ $Id: release-upload.php,v 1.63 2005/05/14 17:37:13 dufuz Exp $
*/
auth_require('pear.dev');
@@ -250,7 +250,7 @@
</p>
MSG;
- $form =& new HTML_Form($_SERVER['PHP_SELF'], 'post', '',
'',
+ $form =& new HTML_Form($_SERVER['SCRIPT_NAME'], 'post', '',
'',
'multipart/form-data');
$form->addFile('distfile',
'<label for="f" accesskey="i">D<span
class="accesskey">i</span>'
@@ -330,7 +330,7 @@
. 'You must correct your package.xml file:');
report_error($warnings, 'warnings', 'RECOMMENDATIONS:<br />'
. 'You may want to correct your package.xml file:');
- $form =& new HTML_Form($_SERVER['PHP_SELF'], 'post');
+ $form =& new HTML_Form($_SERVER['SCRIPT_NAME'], 'post');
$form->addPlaintext('Package:', $info->getPackage());
$form->addPlaintext('Version:', $info->getVersion());
$form->addPlaintext('Summary:', htmlspecialchars($info->getSummary()));
@@ -387,7 +387,7 @@
}
}
- $form =& new HTML_Form($_SERVER['PHP_SELF'], 'post');
+ $form =& new HTML_Form($_SERVER['SCRIPT_NAME'], 'post');
$form->addPlaintext('Package:', $info['package']);
$form->addPlaintext('Version:', $info['version']);
$form->addPlaintext('Summary:', htmlspecialchars($info['summary']));