Drupal is up and running but how do I ...?

Xss::filter on user entered URL (Reflected cross-site scripting)

If an end user is subjected to reflected cross-site scripting and enters a URL as such https://example.com/<script>alert('alert')</script>. 

Does Drupal run it through its static function Xss::filter as described in the API Docs Drupal 10.3Xss.phpXss ?

Is this accurate? If not, then what is the process flow?

Thank you in advance,

Mark

[SOLVED] JS library does not load from theme.libraries.yml

I am trying to load adsense JS code into the header. But it's not showing. I'm using:

googleads:
  header: true
  js:
    https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxx: { type: external, attributes: { async: true; crossorigin: anonymous } }

Another one however shows properly:

How to load an image from Wiki Commons fast?

There is an image weighting 10 MB hosted on Wiki Commons which I load via its URL.

#element {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/example.jpg');
}

How can I load it fast directly from Wiki Commons?

I don't want to download the image, compress it and then upload the image to be a local one, rather, I want to load it from Wiki Commons directly, just a bit faster. What then will you suggest me to try?

drupal 6.38 migration from live to local, images not showing

i am archiving a old site on a local machine running xampp that will display the site in a museum. it is old drupal 6.38.

i have successfully migrated it and everything works except the images are not displaying and this site has 7gigs of historical images.

the old image path shows http://localhost/sites/default/files/scenic stuff 001resized.jpg 

Private folder filled-up with generated sample images

I have managed a Drupal site for years, from version 7 through 10, and just recently noticed a strange behavior: thousands of images named generateImage_xxxxxx.jpg are being generated into the site's private folder. I have no idea which module is responsible, and I can't find anything related to this in the server logs. Any idea what could be causing this issue?"

Is there a module to import content (migrate) from CSV file to a Drupal 7 instance?

I found the migrate tools avaliable for Drupal 8, 9 and 10 and would like to know if there is something similar for Drupal 7. Thanks

Pages

Subscribe with RSS Subscribe to RSS - Post installation