<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/tag/validators/feed</link><description>多元化原創文章，內容包羅萬象，有程式語言、網站應用、軟體介紹、硬體介紹、作業系統、旅行遊記、專題採訪、益智問題、文學創作，以及作者們的知識分享和作品分享。</description><language>zh-TW</language><lastBuildDate>Thu, 16 Apr 2026 18:17:13 +0000</lastBuildDate><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>如何用Rust程式語言驗證使用者輸入的資料？</title><link>https://magiclen.org/validators</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt="">
開發程式的時候，常會需要讓程式能與使用者或其它程式互動，透過文字介面、圖形介面或是通訊協定標準，從外部取得資料來進行更進一步的處理。尤其是當使用者在使用我們的程式時，由於我們沒有辦法限制他們輸入的資料一定要符合程式設計的格式，程式很可能就會因錯誤的輸入而造成錯誤的輸出，甚至對整個系統的安全性造成威脅。所以通常我們在處理外部進來的資料時，會先檢查它們的格式後再進行處理。]]></description><category>Rust</category><category>Rust</category><category>validators</category><category>Rocket</category><guid>https://magiclen.org/validators</guid><pubDate>Sat, 24 Nov 2018 12:00:47 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>