compat.inc.php Error line 99

Found a bug? Tell us!!
Post Reply
ranman
Regular
Posts: 19
Joined: Wed Jul 05, 2006 1:36 pm

compat.inc.php Error line 99

Post by ranman »

Hi,

I found thsi error after my hosting server run some upgrades. And I thought it was due to the new mysql version.


Line 99 is as follow:

Code: Select all

if (extension_loaded('filter') && input_name_to_filter(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) {
then....

just correct the line in the following way:

Code: Select all

if (extension_loaded('`filter`') && input_name_to_filter(ini_get('`filter.default`')) !== FILTER_UNSAFE_RAW) {
And the blog will work again.

Serendipity version:

1.0.4

I hope it helps.

Gonzalo.
Arnold Nijboer
Regular
Posts: 42
Joined: Mon Oct 23, 2006 7:48 pm
Contact:

Re: compat.inc.php Error line 99

Post by Arnold Nijboer »

Code: Select all

if (extension_loaded('`filter`') && input_name_to_filter(ini_get('`filter.default`')) !== FILTER_UNSAFE_RAW) {
doesn't it do the same as without quotes? like:

Code: Select all

if (extension_loaded(filter) && input_name_to_filter(ini_get(filter.default)) !== FILTER_UNSAFE_RAW) {
Or with different quotes:

Code: Select all

if (extension_loaded("'filter'") && input_name_to_filter(ini_get("'filter.default'")) !== FILTER_UNSAFE_RAW) {
looks like it's intergrated in some other code.
but if it works it's fine right :D

Greatings
Arnold Nijboer
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: compat.inc.php Error line 99

Post by garvinhicking »

Hi!

Hm, the code snippet you posted does not come from serendipity 1.0.4.

There we use this (which was the reason for the 1.0.3 release!):

Code: Select all

if (extension_loaded('filter') && function_exists('input_name_to_filter') && input_name_to_filter(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) {
As Arnold wrote, the use of `filter` quotes actually defies the whole system ;)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ranman
Regular
Posts: 19
Joined: Wed Jul 05, 2006 1:36 pm

Re: compat.inc.php Error line 99

Post by ranman »

garvinhicking wrote:Hi!

Hm, the code snippet you posted does not come from serendipity 1.0.4.

There we use this (which was the reason for the 1.0.3 release!):
Hi Garvin.

Sorry, I had worked so much between releases and forums/portals.. I messed up version. I was really serious, I just tried to approximated maybe to closest version.. And that is what I discovered, thinking was useful.

Thanks

Gonzalo.
Post Reply