per page, with , order by , clip by
Results of 1 - 10 of about 32 for escape (0.005 sec.)
組み込みテンプレートタグとフィルタ 14112
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... す。 組み込みタグリファレンス autoescape 自動エスケープ機能を制御します。このタグは引数に on または off を取り、ブロック内の自動エスケープの有効・無効を決定します。 ... ブロックの最後は endautoescape タグで閉じるようにします。 使用例: {% autoescape on %} {{ body }} {% endautoescape %} 自動エスケープがオンの場合、すべての ... 変数由来の値を出力前に HTML エスケープします (他のフィルタはエスケープの前に適用されます)。この動作は、変数に escape フィルタを手動で適用した場合と同じです。 ただ一つの例外は、すでにエスケープに関して "safe" としてマークされている変数です。 ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
Django ユーティリティ (django.utils) 12340
Django ユーティリティ ( django.utils ) このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんどのモジュールは内部使用を目的としていることから、 内部リリース非推奨ポリシー に従い、以下に記載 ... n URIs. See encodeURIComponent() JavaScript function for more details. エンコードされた結果を含む ASCII 文字列を返します。 escape_uri_path ( path ) [ソース] URI (Uniform Resource Identifier) のパス部分から安全でない文字をエスケープします。 django.utils ... ユーティリティを使用します。このモジュールは、HTMLをエスケープするためのいくつかの追加の低レベルユーティリティを提供します。 escape ( text ) [ソース] 与えられたテキストに対して、HTMLで使うためにアンパサンド、引用符、および山括弧をエンコードします。入力は ... 最初に文字列に強制され、出力には mark_safe() が適用されます。 conditional_escape ( text ) [ソース] Similar to escape() , except that it doesn't operate on pre-escaped strings, so it will not double escap ...
https://man.mtool.work/django/6.1/ref/utils.html
独自のテンプレートタグとフィルタを作る 9553
独自のテンプレートタグとフィルタを作る Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された、多種多様な 埋め込みタグやフィルタ を搭載しています。それでもなお、テンプレート構成要素のコア ... jango はフィルタ名として関数の名前を利用します。 最後に、 register.filter() は 3 つのキーワード引数 ( is_safe 、 needs_autoescape 、 expects_localtime ) を受け入れます。これらの引数は、後述の フィルタと自動エスケープ と フィルタとタイムゾーン の中で説明 ... フィルタを書くことが考えられます。 フィルタが現在の自動エスケープの状態を知るためには、フィルタ関数を登録する際に needs_autoescape フラグを True に設定します。(このフラグを指定しない場合、デフォルトは False です)。このフラグは、追加のキーワード引数 auto ... oに渡すようにフィルタ関数に伝えます。この引数は自動エスケープが有効の場合は True 、そうでない場合は False となります。 autoescape パラメータのデフォルトは True に設定しておくことが推奨されます。これにより、Pythonコードから関数を呼び出したときにデフォル ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
Django テンプレート言語 8795
Django テンプレート言語 このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡張するかを知りたい場合は、 Python プログラマーのための Django テンプレート言語 を参照してくださ ... 適用するにはパイプ ( | ) を使用します。 フィルタは "連結" できます。あるフィルタの出力が次のフィルタに適用されます。 {{ text|escape|linebreaks }} はテキストの内容をエスケープし、改行を <p> タグに変換するためのよくあるイディオムです。 いくつかのフィルタは ... oss Site Scripting (XSS) 攻撃と呼ばれています。 この問題を防ぐために、二つの方法があります: 一つは、信頼できない変数は必ず escape フィルタ (後で述べます) に通すことです。このフィルタは危害を及ぼす可能性をもつ HTML 文字を無害な文字に変換します。 この方法 ... たい場合もあるでしょう。 変数単位での制御 個々の変数の自動エスケープを無効にするには safe フィルタを使用します: This will be escaped: {{ data }} This will not be escaped: {{ data | safe }} safe という言葉は、これ以上エスケープしないよう保護 (safe) すると ...
https://man.mtool.work/django/6.1/ref/templates/language.html
Django 4.2.17 リリースノート 8795
Django 4.2.17 リリースノート 2024年12月4日 Django 4.2.17 では 4.2.16 におけるセキュリティの問題のうち 深刻度 "high" 1件と深刻度 "moderate" 1件を修正しました。 CVE-2024-53907: strip_tags() における DoS 攻撃の可能性 strip_tags() would be extr ... L safe. So NEVER mark safe the result of a strip_tags() call without escaping it first, for example with django.utils.html.escape() . CVE-2024-53908: Potential SQL injection via HasKey(lhs, rhs) on Oracle Direct usage of the django.db.models.fields.jso ...
https://man.mtool.work/django/6.1/releases/4.2.17.html
Django 5.0.10 リリースノート 8795
Django 5.0.10 リリースノート 2024年12月4日 Django 5.0.10 では 5.0.9 におけるセキュリティの問題のうち 深刻度 "high" 1件と深刻度 "moderate" 1件を修正しました。 CVE-2024-53907: strip_tags() における DoS 攻撃の可能性 strip_tags() would be extre ... L safe. So NEVER mark safe the result of a strip_tags() call without escaping it first, for example with django.utils.html.escape() . CVE-2024-53908: Potential SQL injection via HasKey(lhs, rhs) on Oracle Direct usage of the django.db.models.fields.jso ...
https://man.mtool.work/django/6.1/releases/5.0.10.html
Django 1.6.11 リリースノート 8538
Django 1.6.11 リリースノート March 18, 2015 Django 1.6.11 fixes two security issues in 1.6.10. Denial-of-service possibility with strip_tags() Last year strip_tags() was changed to work iteratively. The problem is that the size of the input ... p_tags() being HTML safe. So NEVER mark safe the result of a strip_tags() call without escaping it first, for example with escape() . Mitigated possible XSS attack via user-supplied redirect URLs Django relies on user input in some cases (e.g. django.c ...
https://man.mtool.work/django/6.1/releases/1.6.11.html
Django 5.1.4 リリースノート 8538
Django 5.1.4 リリースノート 2024年12月4日 Django 5.1.4 では、 5.1.3 におけるセキュリティの問題のうち深刻度 "high" 1件、深刻度 "moderate" 1件を含め、いくつかのバグを修正しました。 CVE-2024-53907: strip_tags() における DoS 攻撃の可能性 strip_ ... L safe. So NEVER mark safe the result of a strip_tags() call without escaping it first, for example with django.utils.html.escape() . CVE-2024-53908: Potential SQL injection via HasKey(lhs, rhs) on Oracle Direct usage of the django.db.models.fields.jso ...
https://man.mtool.work/django/6.1/releases/5.1.4.html
Django 5.2.9 リリースノート 8538
Django 5.2.9 リリースノート 2025年12月2日 Django 5.2.9 fixes one security issue with severity "high", one security issue with severity "moderate", and several bugs in 5.2.8. CVE-2025-13372: Potential SQL injection in FilteredRelation column ... excessive resource usage. バグ修正 Fixed a bug in Django 5.2 where django.utils.feedgenerator.Stylesheet.__str__() did not escape the url , mimetype , and media attributes, potentially leading to invalid XML markup ( #36733 ). Fixed a bug in Django 5.2 ...
https://man.mtool.work/django/6.1/releases/5.2.9.html
Django 1.0.1 リリースノート 8296
Django 1.0.1 リリースノート Django 1.0.1 へようこそ! This is the first "bugfix" release in the Django 1.0 series, improving the stability and performance of the Django 1.0 codebase. As such, Django 1.0.1 contains no new features (and, pursu ... ping for literal strings passed to the join template filter. Previously, literal strings passed to join were automatically escaped, contrary to the documented behavior for autoescaping and literal strings . Literal strings passed to join are no longer ... automatically escaped, meaning you must now manually escape them; this is an incompatibility if you were relying on this bug, but not if you we ...
https://man.mtool.work/django/6.1/releases/1.0.1.html
PREV 1 2 3 4 NEXT