Skip to content

Commit f72e9a9

Browse files
author
Nick Pappas
committed
Merge pull request radicand#3 from lgnap/master
Merged
2 parents fe66105 + 1613ae8 commit f72e9a9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ distclean: clean
2222
echo -e '<?php\nheader("Location: ./../index.php");\n?>' > ca/index.php
2323

2424
echo '<?php' > config.php
25-
echo 'define(PHPKI_VERSION, "$(VERSION)");' >> config.php
25+
echo 'define("PHPKI_VERSION", "$(VERSION)");' >> config.php
2626
echo '?>' >> config.php
2727

2828
rm -f index.php setup.php

config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
2-
define(PHPKI_VERSION, "0.83");
2+
define("PHPKI_VERSION", "0.83");
33
?>

include/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
umask(0007);
44

5-
if ($_SERVER['PHP_AUTH_USER'])
5+
if (isset($_SERVER['PHP_AUTH_USER']))
66
$PHPki_user = md5($_SERVER['PHP_AUTH_USER']);
77
else
88
$PHPki_user = md5('default');

include/my_functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ function upload($source, $destination, $content_type="application/octet-stream")
6464
function gpvar($v) {
6565
global $_GET, $_POST;
6666
$x = "";
67-
if ($_GET[$v]) $x = $_GET[$v];
68-
if ($_POST[$v]) $x = $_POST[$v];
67+
if (isset($_GET[$v])) $x = $_GET[$v];
68+
if (isset($_POST[$v])) $x = $_POST[$v];
6969
if (get_magic_quotes_gpc()) $x = stripslashes($x);
7070
return $x;
7171
}

setup.php-presetup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ case 'validate':
109109
if ( $passwd and $passwd != $passwdv )
110110
$er .= 'Password and password verification do not match.<br>';
111111

112-
if ( $email && ! is_email($contact) )
112+
if ( $contact && ! is_email($contact) )
113113
$er .= 'E-mail address ('. htvar($contact) . ') may be invalid.<br>';
114114

115115
if (strpos($store_dir,$_SERVER['DOCUMENT_ROOT']) === 0)
@@ -739,7 +739,7 @@ E-mail: <a href=mailto:someone@somewhere.com>someone@somewhere.com</a>&nbsp;&nbs
739739
<td>
740740
<strong>Password</strong> <font color=red>*</font><br>
741741
This password will be used to protect your root certificate private
742-
key. <strong><font color=red>Do not lose or forget this password.</font></strong>
742+
key.<br/>Can't contain single quote ! <strong><font color=red>Do not lose or forget this password.</font></strong>
743743
</td>
744744
<td><input type=password name=passwd value="<?=htvar($passwd)?>" size=30>&nbsp;&nbsp; Again <input type=password name=passwdv value="<?=htvar($passwdv)?>" size=30></td>
745745
</tr>

0 commit comments

Comments
 (0)