Jump to content

IBResource ltd.

Clients
  • Posts

    276
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Everything posted by IBResource ltd.

  1. By doing that you have excluded theme plugins from templates compilation. This is temporary solution until next recompilation. There is an issue with PHP8 uncatchable error, which was deprecated in PHP7.4. Some theme plugin hooks use trick with parent template function overloading in addition to documented hookData() method: public function includeCSS() { \IPS\Output::i()->cssFiles = array_merge( \IPS\Output::i()->cssFiles, \IPS\Theme::i()->css( 'somePlugin.css', 'core', 'front' ) ); return parent::includeCSS(); } As a workaround you can fool the interpreter by changing return parent::includeCSS(); to return \call_user_func_array( 'parent::' . __FUNCTION__, func_get_args() ); The difficulty is that these new errors are not catchable by error handler, so you can't know which hook file is causing them. This often happens with this plugin https://invisioncommunity.com/files/file/9966-back-2-top/ and this app https://invisioncommunity.com/files/file/7940-iawards/
  2. When using loose profanity filter with "Block submission" action it works not as expected because of js regexp. reggie = new RegExp("(?:\\b|\\s|^)(" + looseWords.join('|') + "\\w*)(?:\\b|\\s|$)","ig"); At first it only find words starting with filter. If i try to filter "word" it match "wordpress" but not "sword". Secondly "\w" does not match non-latin word characters but "\b" includes non-latin letters in opposite. In last js filters content on browser side only and there is no content validation in php backend when using "Block submission" option. So it's easy to prevent filtering by devtools in browser and post bad words out of control.
×
×
  • Create New...