Working out how to dymanically alter an image style in Drupal 8 depeding on other parts of the paragraph setting... Having to dive into entity hooks (thought this would all be in classes in 8).

Security Update for Drupal Core (8 and 7) is to do with PHAR file protection. (if i'm reading it right)

drupal.org/SA-CORE-2019-007

At the Word Up meet to learn about accessibility and Wordpress.

Solution if to use LocationMatch

<IfModule mod_security.c>
<LocationMatch "^/views/ajax(.*)">
SecFilterScanPOST Off
</LocationMatch>
</IfModule>

(also only need to turn of scan post (and may be able to turn off specific rules but need to check that).

Following has stopped working for mod_security and views conflict... :-( Trying to debug with fustration.

### Some rules are currently too strict and are blocking legitimate users
### We only disable it for URLs that contain the regex below
### The regex below should be placed between "m#" and "#"
<IfModule mod_security.c>
<If "%{REQUEST_URI} =~ m#/views/ajax#">
SecFilterEngine Off
SecFilterScanPOST Off
</If>
</IfModule>

Should add to this that I'm Brighton based, though can travel and do remote...

In other news, I'm starting search for new work again after Easter... Either or the right perm. UK based, can do remote.

Mostly Full stack, know semantic HTML, CSS, JS and PHP / MySQL. preffered however worked on all sorts of frameworks and CMS in the past.

Two sets of Drupal Security vunlrebailites pathced in latest release.

Dependancy patches for Drupal 8 only
drupal.org/sa-core-2019-005

Jquery patch for Drupal 8 and 7 (Backporting a Jquery fix)
drupal.org/sa-core-2019-006

Mentions JQuery update, so wonder if they get the patch as well?

Front End / HTML Question.

Site I'm working on is using a lot of Meta Refreshs for redirects (not great I know). Is there a way of stopping them in Javascript without rewritting them?

Todays weird Drupal error, which has just started appearing.

Notice: Undefined index: widget in Drupal\paragraphs\Plugin\Field\FieldWidget\InlineParagraphsWidget->massageFormValues() (line 1331 of modules/contrib/paragraphs/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php).

Link! Link! had to be that module that needs the update for D7

Drupal Security Bug is to do with Rest API
Update now available
drupal.org/node/3034490

Also remember to check Drupal 7 modules as thats not a core update, but modules that have moved into core.

Show more
PHP Community on Mastodon

Open source. Open community. We are dedicated to building and enriching the PHP community. Join us!

Welcome to the PHP Community on Mastodon! We're a friendly little Mastodon instance providing a place for PHP developers to discuss topics related to PHP, as well as topics unrelated to PHP. First and foremost, we're about building community, and that doesn't always involve technical discussion, so feel free to go off-topic and have fun.

Before you get started, make sure you check out our code of conduct.


Thank you to Jakob Westhoff for allowing the use of the photograph "elePHPants walking through the light."