I have tested these changes on my live site for over a month with no issues.
Remove popup code as phpBB3.1 no longer uses popup notifications and resolve issue with double slashes and invalid relative paths. These issues become worse when using sh404sef extension.
First change line 412: Three changes!
Remove leading / to prevent double / between domain name and path, with sh404sef a ../../../ relative path can be generated, this needs removing, so strip out any slashes and dots at the start of the path [.\/]*
To prevent modification of links to images for offsite avatars, etc. that include a domain name the any character sequence (.?) has been replaced with any character except colon ([^:]?)
The match for end of path is now any sequence of at least one or singe quote, double quote or closing bracket (["\')]+)
Second Change 428: Remove popup code.
Third change line 723:
Modify paten to remove a leading slash or dot to remove multiple slashes and dots [.\/]+ sh404sef was generating a ../../ sequence.
I have tested these changes on my live site for over a month with no issues.
Remove popup code as phpBB3.1 no longer uses popup notifications and resolve issue with double slashes and invalid relative paths. These issues become worse when using sh404sef extension.
First change line 412: Three changes!
Second Change 428: Remove popup code.
Third change line 723:
Fourth change 730: Remove popup code.
I hope this explains the changes.