Search Results
… use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Url; use Drupal\file\Entity\File; class BatchForm extends FormBase { … batch_set($batch->toArray()); $form_state->setRedirectUrl(new Url($this->getFormId())); } Note that we can't pass the $tempFile …
Article: Drupal 9: Configuring Drupal To Authenticate Against A Remote SimpleSAMLphp Identity Provider
I have previously talked about installing SimpleSAMLphp using composer , so the next step is setting up the system to actually provide authentication against a SimpleSAMLphp system. As I spend a lot of time using Drupal I wanted to set up the authentication with Drupal and SimpleSAMLphp in order to …
Article: DrupalCamp London 2014: A Review
The City University London campus was the venue for Drupalcamp London 2014 and I went along for the weekend as a delegate. This was the first conference for a while where I wasn’t helping out, speaking, or organising in some form so it was good to just turn up and relax. I travelled down on the …
Article: PHPNW11: A Review
The 7 th , 8 th and 9 th of October saw the fourth PHPNW conference in Manchester, and I was lucky enough to be part of the team helping out on the day. I spent the day before the conference driving speakers from the airport to the Mercure (formerly Ramada) hotel in Manchester Piccadilly, and only …
Article: BSides Manchester 2018
… to pick up. He then started talking about a header called X-Original-URL, which I thought was a little familiar. James then went onto show a … by the Drupal internal caches being poisoned using this X-Original-URL header and external cache systems exposing that poisoned cache. He …
… rules to replace settings with real values. --> <regexp pattern="\$db_url = 'mysql:\/\/username:password\@localhost\/databasename';" replace="\$db_url = '${drupal.destination.database.url}';" ignoreCase="true"/> <regexp pattern="\$db_prefix = '';" …
… = 0,$j = count($paragraphs);$i < $j;$i++) { // create links around URLs $paragraphs[$i] = preg_replace('/((ht|f)tp:\/\/[^\s&]+)/','<a …
… The usual example used is of a web server that can be accessed via a URL that is translated behind the scenes into an IP address, but IP …
Article: PHP Easter Eggs
… for PHP by appending one of the following strings to the end of the URL. ?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 …
… The setRedirect() function takes two parameters. The first is the URL to be redirected to and the second is the HTTP response code. … …