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 = |