-
Notifications
You must be signed in to change notification settings - Fork 38
Fix issue with backslashes being removed from entry values #2281
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
base: master
Are you sure you want to change the base?
Fix issue with backslashes being removed from entry values #2281
Conversation
WalkthroughThe changes modify the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Controller as FrmEntriesController
participant Entry as FrmEntry
User->>+Controller: Submit POST data
Controller->>Controller: Validate input using raw $_POST
Controller->>Controller: Prepare data using wp_slash($_POST)
Controller->>Entry: Create entry with slashed data
Entry-->>Controller: Return creation result
Controller-->>User: Return response
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@Crabcyborg This PR only covers entry create process, we can apply similar fix to Pro if it is accepted. What I found to be causing the issue of backslashes getting removed from the entry values is that we are calling Here is what I exactly mean, When creating an entry The values sent to the database should actually be slashed once to be retrieved properly later as in this PR but I don't have that much of confidence that it is an ideal solution. I have tried to think to come up with alternative solutions but I couldn't. I would appreciate your thoughts on this. |
Fix https://github.com/Strategy11/formidable-pro/issues/1246