Search Results
… rendering a form that accepts a node ID as an argument through the URL. Such a mechanism could be used to allow the user to submit … $context = EntityContext::fromEntityTypeId('user', $this->t('User from URL')); return ['user' => $context]; } To use this context provider we …
… 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
… IdP called __DYNAMIC:1__ . SimpleSAMLphp will replace this with the URL of the site, which can create a little bit of confusion when … you'll see a bunch of output. This consists of your metadata URL, the SAML 2.0 metadata XML, a PHP representation of the same and …
Article: DrupalCamp London 2014: A Review
… just a web service (that wraps Lucene) so it can be called with a URL, normally as a GET request. The URL’s can contain the same argument more than once, not allowing this …
Article: PHPNW11: A Review
… 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 … creating Zend Framework 2 then you can visit Matthew Weier O'Phinney's blog post or visit the official website at framework.zend.com . Enrico … are interesting enough to warrant discussion about them in another blog post. If you really want to use agile project management …
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 …
… exploit has been found within the latest (currently 2.8.3) version of Wordpress that can cause any attacker to reset the admin password. The … to you anyway, but it might cause some users to be locked out of their blogs if they can't get access to the email or their email is down. However, it is a real pain so I am writing this blog to allow other bloggers to fix their Wordpress installs. The …
Article: PHP Easter Eggs
… for PHP by appending one of the following strings to the end of the URL. ?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 …