News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

2.0.16 update problems in Querystring.php

Started by Sono, January 19, 2024, 10:12:21 PM

Previous topic - Next topic

Sono

I am trying to install the 2.0.16 update. The installer is reporting Test failed for this:

40.   Execute Modification   ./Sources/QueryString.php

Add After   ./Sources/QueryString.php

Find:
$buffer = preg_replace_callback('~"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"~', 'pathinfo_insert__preg_callback', $buffer);
}

My code there is different, looks like this:
$buffer = preg_replace_callback('~"' . preg_quote($scripturl, '/') . '\?((?:board|topic|page)=[^#"]+?)(#[^"]*?)?"~', 'pathinfo_insert__preg_callback', $buffer);
Is it okay leaving it like that and adding the stuff the installer wants after it manually? Or leaving my version of the code like that will create problems?

Arantor

Add the stuff the installer wants manually after it.

You don't want to remove that line as is because it'll break SimplePortal pages if you do.

Sono

Quote from: Arantor on January 20, 2024, 05:46:43 AMAdd the stuff the installer wants manually after it.

You don't want to remove that line as is because it'll break SimplePortal pages if you do.

Thanks for the advice!

Advertisement: