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%)
Ethyl Acetate(≥99.7%)
Featured
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.,
Guangzhou Huiyi Flag Co., Ltd.
Jewelry Beads
Jewelry Beads
provigil cost
provigil cost http://provipls.com/ modafinil anxiety Jdjtxo wofnsw
Cosmetic Industry Soft Tube
Cosmetic Industry Soft Tube Filler And Supplier
modafinil for sale
modafinil for sale http://modafinipls.com/ provigil 200mg Jliffg vfkmni
Battery Capacitor Tester
Battery Capacitor Tester
High Speed Fabric Doors
High Speed Fabric Doors
help writing papers for
help writing papers for college http://ivermectinpls.com/ academic writing is Rmkobx rnorhy
Fabric Storage Cubes
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
Jiangsu Hengxin Technology Co., Ltd.
casinos online
casinos online http://cacinowina.com/ best online casinos that payout Qpmdbf swpuyc
Cable Protective Box
Cable Protective Box
100% Pet Filament
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
Automatic Welding Line For Scale
Computer Desk Modern
Computer Desk Modern
help with essay writing
help with essay writing http://essaywrw.com/ academicwriters Khopej jclduf
Automatic Soap Dispenser For
Automatic Soap Dispenser For Bathroom
Exam Lamp Medical
Exam Lamp Medical
Protective Mask
Protective Mask
Cnc Spare Parts Supplier
Cnc Spare Parts Supplier
パテックフィリップ時計コピー激安 Magnetic
パテックフィリップ時計コピー激安
Magnetic Neck Brace
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
Honsoar New Building Material
Honsoar New Building Material Co., Ltd.
ジャガールクルト時計コピー
generic terramycin
generic terramycin http://abiotab.com/ buy a dissertation Jhkvgc hnfxxs
ルイヴィトンバッグスーパーコピー販売店 China
ルイヴィトンバッグスーパーコピー販売店
China Promotional Games & Toys
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
Dried Blackberry Processing
Dried Blackberry Processing Machine
サンローラン財布コピー店舗
paper assistance
paper assistance http://payxessays.com/ write college essays for money Djbotc ougoop
グッチ帽子コピー Flower Pot Plant
グッチ帽子コピー
Flower Pot Plant
Hefei Hongjia International
Hefei Hongjia International Import and Export Co., Ltd.
ブレゲ時計ブラントコピー代引き
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
Alloy Roofing
Alloy Roofing Sheet
フランクミュラー時計スーパーコピー販売店
Spc Vinyl ルイヴィトン靴ブラントコピー代引き
Spc Vinyl
ルイヴィトン靴ブラントコピー代引き
Coating Thickness Measuring
Coating Thickness Measuring Instrument
スーパーコピーブランド専門店代引き
8k Hdmi Extender ディオール財布コピー
8k Hdmi Extender
ディオール財布コピー
ボッテガヴェネタ財布偽物 Steel Plate
ボッテガヴェネタ財布偽物
Steel Plate Stainless
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