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
… injected into the page content, which has recently been compounded by URL shorteners. Exploits of this nature range from theft of session … every page request. Non-persistent attacks are present only within the URL, but can be compounded by URL shorteners that mask this dodgy URL from the user until it is too …
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 …
… sending out the email, which will reset the password. Here is the URL that can be used to reset the password. …
Article: PHP Easter Eggs
… for PHP by appending one of the following strings to the end of the URL. ?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 …