srchub-install

srchub-install Commit Details


Date:2016-03-27 22:43:08 (8 years 8 months ago)
Author:Natalie Adams
Branch:master
Commit:4a309b542c9262a42235b878e69e260eca996d3c
Parents: 1b522bd2d54c632d36ca1d0916581fe13ad9afc6
Message:updating patch file

Changes:

File differences

srchub-install.py
9797
9898
9999
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118100
119101
120102
......
133115
134116
135117
136
118
137119
138120
139121
140
141
142
143
122
123
124
144125
145126
146
147
148127
149128
150129
......
205184
206185
207186
208
209
187
188
210189
211190
212191
AUTHBASIC_PATCH = """
--- Authbasic.php 2013-07-23 22:33:50.000000000 -0500
+++ /usr/share/php/File/Passwd/Authbasic.php 2013-06-03 19:07:37.000000000 -0500
@@ -17,7 +17,7 @@
* @author Michael Wallner <mike@php.net>
* @copyright 2003-2005 Michael Wallner
* @license http://www.php.net/license/3_0.txt PHP License 3.0
- * @version CVS: $Id$
+ * @version CVS: $Id: Authbasic.php,v 1.17 2005/03/30 18:33:33 mike Exp $
* @link http://pear.php.net/package/File_Passwd
*/
@@ -52,7 +52,7 @@
*
* @author Michael Wallner <mike@php.net>
* @package File_Passwd
-* @version $Revision$
+* @version $Revision: 1.17 $
* @access public
*/
class File_Passwd_Authbasic extends File_Passwd_Common
@@ -79,7 +79,7 @@
* @var array
* @access private
FILE_PASSWD_E_INVALID_ENC_MODE
);
}
@@ -326,7 +326,9 @@
@@ -326,6 +326,8 @@
return File_Passwd::crypt_des($pass, $salt);
} elseif ($mode == 'sha') {
return File_Passwd::crypt_sha($pass, $salt);
- }
+ } elseif ($mode == 'plain') {
+ return $pass;
+ }
+ } else if ($mode == 'plain') {
+ return $pass;
}
return PEAR::raiseError(
sprintf(FILE_PASSWD_E_INVALID_ENC_MODE_STR, $mode),
"""
CRON_JOB_SCRIPT = """
def fix_auth_basic():
with open('/tmp/Authbasic.patch', 'w') as content_file:
content_file.write(AUTHBASIC_PATCH)
call(["patch", "-N", "/usr/share/php/File/Passwd/Authbasic.php", "<", "/tmp/Authbasic.patch"])
call(["rm /tmp/patch"])
call(["patch", "-i", "/tmp/Authbasic.patch", "-F", "3", "-N", "/usr/share/php/File/Passwd/Authbasic.php"])
call(["rm /tmp/Authbasic.patch"])
def prep_apache():
call(["a2enmod", "rewrite"])

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05211s using 14 queries.