Skip to content

Commit d5e99f3

Browse files
committed
Fix crash in PHP 8 by removing "magic_quotes_gpc" support.
1 parent a76ae79 commit d5e99f3

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
OracleEditor.php ChangeLog
22
==================================
33

4+
2024-11-11 Tim Strehle <[email protected]>
5+
6+
Fix crash in PHP 8 by removing "magic_quotes_gpc" support.
7+
48
2017-11-17 Tim Strehle <[email protected]>
59

610
Fixed homepage URL in footer.

OracleEditor.php

+6-17
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/*
33
OracleEditor.php
4-
Version 1.20
5-
by Tim Strehle <tim@strehle.de>
4+
Version 1.21
5+
by Tim Strehle <tim.strehle@mailbox.org>
66
77
https://github.com/tistre/oracleeditor
88
@@ -13,7 +13,7 @@
1313
I wrote it for situations where you quickly need to do some small data
1414
manipulation and don't have a better tool available. OracleEditor.php is
1515
free and Open Source.
16-
Feel free to contact me at tim@strehle.de with questions/comments.
16+
Feel free to contact me at tim.strehle@mailbox.org with questions/comments.
1717
1818
Disclaimer:
1919
Use this software at your own risk. I won't guarantee that it works, and
@@ -25,8 +25,7 @@
2525
2626
Requirements:
2727
PHP 4 (version 4.1 or greater) with Session and OCI8 support.
28-
Works fine with the php.ini setting "register_globals = off",
29-
and regardless of the "magic_quotes_gpc" setting.
28+
Works fine with the php.ini setting "register_globals = off".
3029
*/
3130

3231
// Don't write PHP warnings into HTML. Watch your PHP error_log file!
@@ -37,16 +36,6 @@
3736

3837
$version = trim(substr('$Revision: 1.20 $', 10, -1));
3938

40-
// Fix magic_quotes_gpc garbage
41-
42-
if (get_magic_quotes_gpc())
43-
{ function stripslashes_deep($value)
44-
{ return (is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value));
45-
}
46-
47-
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
48-
}
49-
5039
// To allow multiple independent OracleEditor sessions,
5140
// propagate session ID in the URL instead of a cookie.
5241

@@ -527,7 +516,7 @@
527516
{ ?>
528517

529518
</table>
530-
<p>HTML generated by <a href="https://github.com/tistre/oracleeditor">OracleEditor.php</a> <?php echo $version; ?> &copy; 2017 by <a href="https://www.strehle.de/tim/">Tim Strehle</a> &lt;<a href="mailto:tim@strehle.de">tim@strehle.de</a>&gt;</p>
519+
<p>HTML generated by <a href="https://github.com/tistre/oracleeditor">OracleEditor.php</a> <?php echo $version; ?> &copy; 2017 by <a href="https://www.strehle.de/tim/">Tim Strehle</a> &lt;<a href="mailto:tim.strehle@mailbox.org">tim.strehle@mailbox.org</a>&gt;</p>
531520
</body>
532521
</html>
533522

@@ -1730,7 +1719,7 @@ function pof_getforeignkeys($table)
17301719

17311720
</form>
17321721

1733-
<a href="https://github.com/tistre/oracleeditor" title="OracleEditor.php homepage">OracleEditor.php</a> <?php echo $version; ?> &copy; 2017 by <a href="https://www.strehle.de/tim/" title="Tim Strehle's homepage">Tim Strehle</a> &lt;<a href="mailto:tim@strehle.de" title="Send e-mail to Tim Strehle">tim@strehle.de</a>&gt;
1722+
<a href="https://github.com/tistre/oracleeditor" title="OracleEditor.php homepage">OracleEditor.php</a> <?php echo $version; ?> &copy; 2017 by <a href="https://www.strehle.de/tim/" title="Tim Strehle's homepage">Tim Strehle</a> &lt;<a href="mailto:tim.strehle@mailbox.org" title="Send e-mail to Tim Strehle">tim.strehle@mailbox.org</a>&gt;
17341723

17351724
</body>
17361725
</html>

0 commit comments

Comments
 (0)