-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Good Coms & Capcha #712
Open
sudwebdesign
wants to merge
20
commits into
pluxml:master
Choose a base branch
from
sudwebdesign:patch-18
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Good Coms & Capcha #712
Conversation
This file contains 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
+include typo +plx_session_start
…class.plx.motor.php on line 1081 Call Stack 1 0.0002 375056 {main}( ) .../index.php:0 2 0.0984 975712 plxMotor->demarrage( ) .../index.php:31 3 0.0985 976488 plxMotor->newCommentaire( $artId = '0002', $content = ['name' => 'tiptop', 'mail' => '[email protected]', 'site' => 'http://www.pluxml.orgs', 'content' => 'Ma réponse com', 'capcha_token' => '18d244914785d45d320bf5dd5be54b5868889f3a', 'rep' => 'l', 'parent' => '5'] ) .../class.plx.motor.php:403 Location: http://localhost/article2/nouvel-article#c0002-6
And not only after error ;)
Fix index 'login' undefined on public post
More secure, $retour be set of lang var when error
if unedited old art have allow_com > 0 but global = 0 articleAllowComs block new comment & form [like previous PluXml](https://github.com/pluxml/PluXml/blob/5.8.9/core/lib/class.plx.motor.php#L313)
Fix site² + same as frontend : StrCheck to allow more chars
Note : Only unicode alphanumeric characters allowed for author of com This prevent blank author name in xml when it begin with '<a' & unclosed like '<a my pseudo' + Up to allow 50 characters for author input in frontend + More html tags allowed in com content
sudwebdesign
commented
Jan 24, 2024
# On genere le contenu de notre fichier XML | ||
ob_start(); | ||
?> | ||
<comment> | ||
<author><![CDATA[<?= plxUtils::cdataCheck($content['author']) ?>]]></author> | ||
<author><?= plxUtils::strCheck(preg_replace('~(\W)~u',' ',$content['author']), true, '') ?></author> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testé avec les caractères cyrilliques :
бвгджзклмнпрстфхцчшщ аеёиоуыэюя
БВГДЖЗКЛМНПРСТФХЦЧШЩ АЕЁИОУЫЭЮЯ
ЙЎЁЇЃЌ
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.
https://forum.pluxml.org/discussion/comment/64676/#Comment_64676
Avec ce patch tout va, même le capcha
Vérifiés :