You should not use HTTP request parameters as filenames

One corollary of the danger of over-powerful introspection is that you should not use HTTP requestparameters directly as filenames for any reason, not just to avoidhard-coding allowed commands in your web application. Any time that youuse a request parameter as a filename, you create an opportunity for anattacker to escape from whatever directory your application is supposedto get its files from and thus to rummage all over your system.

(In fact, you should not directly use the URL for a filename either,because someday


瘦虎肥龍爭霸戰‧四

隔日沒有更新蜜柑和Ding Ding的情報, 因為連主人我都掛了下來. 很久都沒有病得這樣厲害, 手軟腳軟, 連兩小寶掀起的夜間惡鬥都無力阻止.

星期五晚簡直無攪好訓, 一來全身發滾, 滴汗不出, 二來蜜柑和Ding Ding終於展開正面衝突,
Continue reading...

現在才tip

今年沒有仔細研究港姐。
覺得還是8號熊穎詩比較好。
樣貌方面,3、4都ok。

我又重看了《其後》


最近我再看了一次《其後》,已經是第三次看了,仍然覺得好看。

重看的理由很古怪,有一天太太看報紙見到松田龍平的孩子出世了,她就跟我說松田優作榮升祖父了,於是我就說,不如找一部他的電影看看,當作為他慶祝吧。

岩洞裡的聖誕樹

岩洞入口,當地人說右邊是岩洞守護者的眼睛
我們今日需要一清早起床打點一切,因為我們要到 岩洞展開清潔工作! 又一次 吃過份量少得很的早餐後,大家就帶著很多工具和水,由木屋出發,步行十多分鐘便到達 Karaulnaia Cave 進行我們期
Continue reading...

改版及其他


過去的一個星期,我幾個晚上為這個blog改版。

說出來你也許不相信,我改版,只因發現原來這個blog一直在用舊版本,現在已經多了很多新功能,於是就貪玩試一下,一試就試到要把舊有的七百幾篇文章找出來重新標籤和分類,真

好馬不吃回頭草

這個星期,中環最熱鬧的地方不是翠華,而是printer。

心水清的讀者一定注意到,「printer」這個字已大半年沒有在小妹的專欄出現過。當我還在攬住個水泡深呼吸再閉氣,突然有人大喊一聲:「Party Time!」大夥兒就跑去開嘉年華。我呆呆

A gotcha with Python's new signal.siginterrupt()

Python 2.6 added a siginterrupt() function to the signal module , so that you can dealwith the EINTR problem . Unfortunately it doesn'tnecessarily do what you want, because of CPython signal handlersemantics .

(Ob-attribution: signal.siginterrupt() was brought to my attention bya commentator on the EINTR entry .)

What you probably want when you combine siginterrupt() and a signalhandler, and what a lot of people probably think that they are getting,is that when your program


Lady First 專欄(57)

《 幸 福 到 不 能 》


25歲的Rosanna,與現任男友拍拖五年多,這位男友是她的first real dating boyfriend,兩人同年生但男友較她年輕七個月。

Rosanna父母一開始就反對兩人拍拖,要他們分手,而她就瞞騙父母說已分開。

拍拖四年,自稱「唔知痴咗邊條根」

去舊迎新

「劫後餘生」和捷克男中途退出的第一天,我們都睡至中午才起床。一睡醒就看到新加入的法國女生已到達木屋,她不明白為什麼我們看下去都疲倦得很,又不斷問我們是不是遇上劫難。唉 ...... 三言兩語實在很難將我們
Continue reading...