/[smeserver]/rpms/e-smith-php/sme8/e-smith-php-2.2.0-obsoleteMagicQuotes.patch
ViewVC logotype

Annotation of /rpms/e-smith-php/sme8/e-smith-php-2.2.0-obsoleteMagicQuotes.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sun Mar 14 08:53:44 2010 UTC (14 years, 7 months ago) by snetram
Branch: MAIN
CVS Tags: e-smith-php-2_2_0-7_el5_sme, e-smith-php-2_2_0-3_el5_sme, e-smith-php-2_2_0-4_el5_sme, e-smith-php-2_2_0-6_el5_sme, e-smith-php-2_2_0-5_el5_sme, e-smith-php-2_2_0-2_el5_sme, HEAD
* Sat Mar 13 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-2.sme
- Prepare for obsoletion of magic_quotes* when we supply PHP 5.3.0+ [SME: 5843]

1 snetram 1.1 diff -up e-smith-php-2.2.0/root/etc/e-smith/db/configuration/defaults/php/MagicQuotes.obsoleteMagicQuotes e-smith-php-2.2.0/root/etc/e-smith/db/configuration/defaults/php/MagicQuotes
2     --- e-smith-php-2.2.0/root/etc/e-smith/db/configuration/defaults/php/MagicQuotes.obsoleteMagicQuotes 2010-03-14 09:47:07.000000000 +0100
3     +++ e-smith-php-2.2.0/root/etc/e-smith/db/configuration/defaults/php/MagicQuotes 2010-03-14 09:47:47.000000000 +0100
4     @@ -0,0 +1 @@
5     +On
6     diff -up e-smith-php-2.2.0/root/etc/e-smith/db/configuration/migrate/PhpMagicQuotes.obsoleteMagicQuotes e-smith-php-2.2.0/root/etc/e-smith/db/configuration/migrate/PhpMagicQuotes
7     --- e-smith-php-2.2.0/root/etc/e-smith/db/configuration/migrate/PhpMagicQuotes.obsoleteMagicQuotes 2010-03-14 09:46:34.000000000 +0100
8     +++ e-smith-php-2.2.0/root/etc/e-smith/db/configuration/migrate/PhpMagicQuotes 2010-03-14 09:45:59.000000000 +0100
9     @@ -0,0 +1,19 @@
10     +{
11     +
12     + use version;
13     +
14     + open (PHP, 'php -v | grep built | cut -d " " -f 2 |');
15     + my $current = <PHP> || "0.0.0";
16     + close PHP;
17     +
18     + chomp $current;
19     + $current = "v$current";
20     +
21     + my $treshold = version->new("v5.3.0");
22     +
23     + return unless $current >= $treshold;
24     +
25     + $DB->get_prop_and_delete ('php', 'MagicQuotes');
26     +
27     +}
28     +
29     diff -up e-smith-php-2.2.0/root/etc/e-smith/templates/etc/php.ini/40DataHandling.obsoleteMagicQuotes e-smith-php-2.2.0/root/etc/e-smith/templates/etc/php.ini/40DataHandling
30     --- e-smith-php-2.2.0/root/etc/e-smith/templates/etc/php.ini/40DataHandling.obsoleteMagicQuotes 2008-10-07 19:36:44.000000000 +0200
31     +++ e-smith-php-2.2.0/root/etc/e-smith/templates/etc/php.ini/40DataHandling 2010-03-14 09:51:28.000000000 +0100
32     @@ -7,7 +7,10 @@ post_max_size =
33     $OUT .= "$ms";
34     }
35     gpc_order = "GPC"
36     -magic_quotes_gpc = On
37     +magic_quotes_gpc = {
38     + my $mq = $php{MagicQuotes} || "Off";
39     + $OUT .= "$mq";
40     +}
41     magic_quotes_runtime = Off
42     magic_quotes_sybase = Off
43     auto_prepend_file =

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed