.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

Ethyl Acetate(≥99.7%)

Featured

generic name for ivermectin -

generic name for ivermectin - http://stromectopl.com/ stromectol oral

ivermectin for sale -

ivermectin for sale - http://ivermectipl.com/ stromectol price usa

Guangzhou Huiyi Flag Co.,

Jewelry Beads

provigil cost

provigil cost http://provipls.com/ modafinil anxiety Jdjtxo wofnsw

Cosmetic Industry Soft Tube

modafinil for sale

modafinil for sale http://modafinipls.com/ provigil 200mg Jliffg vfkmni

Battery Capacitor Tester

High Speed Fabric Doors

help writing papers for

help writing papers for college http://ivermectinpls.com/ academic writing is Rmkobx rnorhy

Fabric Storage Cubes

help with my assignment

help with my assignment http://geivermectin.com/ my favorite writer essay Pmxzva tyszxr

term papers for sale online

term papers for sale online http://boessay.com/ essays online to buy Dqqaem wpwixe

casino http://cacinobz.com/

casino http://cacinobz.com/ casino online slots Pbryuq jrzhev

Jiangsu Hengxin Technology

casinos online

casinos online http://cacinowina.com/ best online casinos that payout Qpmdbf swpuyc

Cable Protective Box

100% Pet Filament

i need help with my essay

i need help with my essay http://wrtessay.com/ academic writing services uk Ttzilx kowaer

Automatic Welding Line For

Computer Desk Modern

help with essay writing

help with essay writing http://essaywrw.com/ academicwriters Khopej jclduf

Automatic Soap Dispenser For

Exam Lamp Medical

Protective Mask

Cnc Spare Parts Supplier

cialis fast delivery usa

cialis fast delivery usa http://edpll.com/ how to write an essay about my family Mwpiek eufpez

cialis otc

cialis otc http://ciapili.com/ term papers writing service Eadimt ipkajx

generic terramycin

generic terramycin http://abiotab.com/ buy a dissertation Jhkvgc hnfxxs

buy nitrofurantoin online

buy nitrofurantoin online http://antibitc.com/ buying a term paper Ivdygy qffohm

write college essays for

write college essays for money http://writexessays.com/ writing dissertation service Nnhvzt uqvxle

paper assistance

paper assistance http://payxessays.com/ write college essays for money Djbotc ougoop

グッチ帽子コピー Flower Pot Plant

online pharmacy canada

online pharmacy canada http://phapll.com/ thesis writing services Temluj stugzr

impotence pills

impotence pills http://strongplled.com/ good academic writing Bwflim gfbsuz

what is the best ed pill

what is the best ed pill http://pllsed.com/ buying essays Ayyvhi lzdgyx

cialis without prescription

cialis without prescription http://edsilap.com/ academic writing blog Yssrvj btvfen

30mg cialis

30mg cialis http://edsilap.com/ help write my paper Mhegba eothil

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.