plxAdmin : strCheck, bonne indentation et trim aux bons endroits#740
Draft
sudwebdesign wants to merge 3 commits intopluxml:masterfrom
Draft
plxAdmin : strCheck, bonne indentation et trim aux bons endroits#740sudwebdesign wants to merge 3 commits intopluxml:masterfrom
sudwebdesign wants to merge 3 commits intopluxml:masterfrom
Conversation
Nouvelle logique pour $tags : `true` == interdit ou liste des admis Les guillemts `"` sont convertis et de nouveau authorisées ds CDATA L'option CDATA est protègé par plxUtils::cdataCheck Previent les attaques XSS JS possible avec le dernier param à `true` Corrige : <a href="#" style="font-size:60px" data-code="[[code]]">lien</a> Donnais (description de catégorie, Flux RSS, etc...) <a href=# style=font-size:60px data-code=[[code]]>tien</a> plxMotor->addCommentaire On autorise les balises HTML : <a><b><i><p><q><u><em><sub><sup><del><pre><code><span><strong> Où l'on supprime tous les scripts et ne garde que les attributs src, class et href sans javascript. On supprime aussi style car imaginons un petit malin faire : <p style=font-size:10000px ... sur un commentaire ;) plxAdmin (Re-)permet de : Les metas, alts et titles sont convertis mieux qu'à l'origine. Par exemple, utile pour un article de tuto sur les balises ;) Pourquoi s'en privé :) Note : sanitizeHtml ajoute un <p> pour les textes sans balise, d'où le remplacement de p par div ds theme/defaut/commentaires Idée : un éditeur HTML leger pour les commentaires.
CheckSite change la variable par référence
login et name sont verifiés en amont du xml (strCheck inutile) PATTERN_NAME cat_name est trimé avant le test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Même que #739
plxUtils : refacto strCheck + nouvelle sanitizeHtmlAvec quelques correctifs de la #727 et de plxMotor