.htaccess security fix a hozzám hasonló lusta disznóknak

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Leírás

Elérkezett az idő, hogy sok-sok oldalunkat fel kell rugdalni a legújabb drupal verzióra. Így természetesen belefutottam az SA_2013_003 security release .htaccess átírós nyavajájába. Na most 30+ oldalnál csak nem kezdem el egyesével átírogatni a files mappa .htaccess-ét.

Ez a kis modul bekapcs, és már a helyén is lesz
https://bitbucket.org/gszanto/sa_2013_003/get/b227bbce6fee.zip

A private mappára nem próbáltam, elvileg ugyanígy kellene működnie.

Akinek meg van saját modulja ilyen célokra, egy dobjon egy hook_update_N()-t a modul install file-jába:

[geshifilter-drupal6]/** * Fix file directory .htaccess based on SA_2013_003. */ function MODULE_hook_update_7001() { module_load_include('install', 'system'); $req = system_requirements('runtime'); if (isset($req['public://.htaccess'])) { $htaccess_lines = file_htaccess_lines(FALSE); $ht_dir = file_stream_wrapper_uri_normalize('public://.htaccess'); drupal_chmod($ht_dir, 0777); // Write the .htaccess file. if (file_put_contents($ht_dir, $htaccess_lines)) { drupal_chmod($ht_dir, 0444); } } if (isset($req['temporary://.htaccess'])) { $htaccess_lines = file_htaccess_lines(FALSE); $ht_dir = file_stream_wrapper_uri_normalize('tmp://.htaccess'); drupal_chmod($ht_dir, 0777); if (file_put_contents($ht_dir, $htaccess_lines)) { drupal_chmod($ht_dir, 0444); } } if (isset($req['private://.htaccess'])) { $htaccess_lines = file_htaccess_lines(TRUE); $ht_dir = file_stream_wrapper_uri_normalize('private://.htaccess'); drupal_chmod($ht_dir, 0777); if (file_put_contents($ht_dir, $htaccess_lines)) { drupal_chmod($ht_dir, 0444); } } }[/geshifilter-drupal6]

Ja, és fontos: a file_htaccess_lines() a drupal 7.24-ben jelent csak meg, szóval abból ugyan baj nem lehet, ha régebbi verziójú drupalnal is előre kijavítjuk a .htaccess-t, ám az így nem fog menni.

Hozzászólások

payday loans, loans for bad

payday loans, loans for bad credit
personal loans, cash advance online
https://247loans.icu/

loans for bad credit, payday

loans for bad credit, payday loans online
same day loans - payday loans online
https://247loans.icu/

loans with bad credit -

payday loans direct lender,

loans online - loans bad

loans online - loans bad credit
loans online - payday loans online
https://247loans.icu/

cash advance, personal

cash advance, personal loans
same day loans - payday loans online
https://247loans.icu/

loans bad credit, loans bad

loans bad credit, loans bad credit
payday loans direct lender, payday loans online
https://247loans.icu/

payday express - fast

payday express - fast cash
loans for bad credit - loans with bad credit
https://247loans.icu/

loans for bad credit, loans

loans for bad credit, loans with bad credit
quick cash advance online, quick cash advance online
https://247loans.icu/

cash advance online, loans

cash advance online, loans online
payday loans direct lender, quick cash
https://247loans.icu/

personal loans for bad

personal loans for bad credit, quick cash advance online
payday loans direct lender, loans with bad credit
https://247loans.icu/

payday loans - payday loans

payday loans - payday loans online
quick cash advance online - loans direct
https://247loans.icu/

cash advance, loans

cash advance, loans online
loans online, personal loans
https://247loans.icu/

payday express - payday

payday express - payday loans
same day loans - loans bad credit
https://247loans.icu/

same day loans - fast

same day loans - fast cash
loans bad credit - loans online
https://247loans.icu/

payday loans direct lender,

payday loans direct lender, personal loans for bad credit
fast cash - cash advance
https://247loans.icu/

loans bad credit - fast

loans bad credit - fast cash
loans with bad credit - loans direct
https://247loans.icu/

payday loans direct lender -

loans bad credit - loans with

loans bad credit - loans with bad credit
payday loans direct lender - cash advance online
https://247loans.icu/

payday loans online -

payday loans online - personal loans for bad credit
payday express, personal loans for bad credit
https://247loans.icu/

same day loans, loans

same day loans, loans direct
loans with bad credit - quick cash advance online
https://247loans.icu/

payday loans - quick cash

payday loans - quick cash advance online
loans bad credit - quick cash
https://247loans.icu/

cash advance online - loans

payday loans online, quick

payday loans online, quick cash advance online
personal loans, payday express
https://247loans.icu/

loans bad credit, personal

loans bad credit, personal loans for bad credit
fast cash - pay day loans
https://247loans.icu/

same day loans - loans with

same day loans - loans with bad credit
cash advance online - same day loans
https://247loans.icu/

loans for bad credit, loans

loans for bad credit, loans with bad credit
payday loans online, loans for bad credit
https://247loans.icu/

personal loans - loans for

personal loans - loans for bad credit
payday loans online, payday express
https://247loans.icu/

personal loans, quick cash

personal loans, quick cash advance online
quick cash - fast cash
https://247loans.icu/

loans with bad credit - loans

loans with bad credit - loans with bad credit
loans for bad credit - personal loans for bad credit
https://247loans.icu/

quick cash advance online -

quick cash advance online - same day loans
cash advance online, same day loans
https://247loans.icu/

payday express - loans

payday express - loans online
cash advance online, cash advance
https://247loans.icu/

loans direct, loans

fast cash, cash advance

fast cash, cash advance online
payday express, payday express
https://247loans.icu/

quick cash, loans direct pay

quick cash, loans direct
pay day loans, personal loans
https://247loans.icu/

loans for bad credit, loans

loans for bad credit, loans with bad credit
personal loans, pay day loans
https://247loans.icu/

personal loans - cash

quick cash advance online -

quick cash advance online - loans for bad credit
quick cash advance online, loans direct
https://247loans.icu/

cash advance online, fast

pay day loans, loans for bad

pay day loans, loans for bad credit
quick cash - loans bad credit
https://247loans.icu/

personal loans for bad

personal loans for bad

loans bad credit, loans for

loans bad credit, loans for bad credit
loans direct - loans with bad credit
https://247loans.icu/

personal loans for bad

personal loans for bad credit

payday loans direct lender,

payday express - personal

payday loans, loans

payday loans, loans direct
personal loans - loans direct
https://247loans.icu/

payday loans direct lender,

quick cash advance online -

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.