Problem encountered when attempting to store an email address containing a "%" symbol

Hello, I am facing an issue with storing data from the frontend in MySQL DB and then retrieving it to the frontend. After updating the email address and saving it, it gets saved as abs%gmail.com instead of [email protected]. The strange thing is that this only happens after I have updated it once. I have tried looking for solutions on stack overflow, git, and other platforms but none seem to work.

I would greatly appreciate any helpful solution to this problem.

Answer №1

The information is encrypted

You can easily decrypt it using your method

decodeURIComponent('abs%40gmail.com')
// output: "[email protected]"

encodeURIComponent('<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dfbebdac9fb8b2beb6b3f1bcb0b2">[email protected]</a>')
// output: "abs%40gmail.com"

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Experiencing a Node.js application issue with the error message "ERR

I'm encountering some serious challenges with a Node.js app that I am developing using Express, MongoDB, and Mongoose. Everything seemed to be functioning correctly last night when I used nodemon server.js to start the server. However, I'm now fa ...

Practical tips for sending an array of objects via RESTful query strings?

What is the most effective way to include an array of objects in a query string using REST principles? Consider the following array: examples[] = [ { name: "foo", value: "1" }, { name: "bar", value: &qu ...

Resolving issues with JavaScript onchange functionality

When I try to use both of these scripts (inline and external) together, only the second one seems to be working while the first one does not. The first script (inline) is responsible for submitting the form and loading the list: <select id="my-sel ...

The Clash Between Jquery 2.1.1 and Lightbox

I am trying to incorporate a photo upload feature with a lightbox on a single page, however, I encountered a conflict between my jquery-2.1.1 and lightbox js. I attempted to use jQuery.conflict(); to resolve the issue, but it resulted in another error "jQu ...

encountering net::ERR_ABORTED upon attempting to include the jQuery library source in the HTML file

Currently, I am attempting to trigger an alert using jQuery code. Within my HTML document, there are three inputs - login, password, and a button. The desired outcome is for an alert to display the concatenation of the login and password values once they h ...

Verify whether the array is equal to 123

Looking for assistance in developing a method to determine if an array is123. The is123 array is defined as having a repetitive sequence of integers 1, 2, 3. For example: int[] arr1 = {1, 2, 3, 1, 2, 3} should return 1 since it follows the pattern, otherwi ...

The mySQL UPDATE function is not functioning properly on Google App Engine (GAE) when triggered from a web

My latest project involves creating a verify email address python script for Google App Engine, even though I am aware of the available solutions in Django. However, I prefer to write my own code as a way of learning. The python code below is supposed to ...

Are you ensuring compliance with licensing in your Webpack bundles?

Can webpack be used to verify license compliance? I'm looking for a way to ensure that the license headers from all modules built by webpack are included in the final output file. How can we confirm this is happening? Furthermore, I am also intereste ...

Interactive map with AngularJS featuring dynamic markers and real-time updating of marker position

In my Angular application, I have integrated a Google Map with a marker. I am looking to make the marker move along with the map as it is being moved. Currently, the marker stays in its default position when the map is moved. How can I achieve the effect ...

An issue has been detected by Zone.js where the ZoneAwarePromise `(window|global).Promise` has been unexpectedly replaced

I have recently integrated the Angular2 quickstart code into my existing webpack setup, but I seem to be facing an issue where something is interfering with the promise from zone.js, resulting in an error. Based on my research on Stack Overflow, it appears ...

implementing a calendar picker within a linked select dropdown using ajax

I'm currently working on fixing multiple errors, but one question that I have is why the datepicker doesn't pop up when I click on it. Which div should I be targeting for this functionality? <?php require '../common/pdo_connect.php' ...

Understanding how to parse a JSON object in JavaScript is a

In my JSON object, I have the following data: rows = [{name:"testname1" , age:"25"}, {name:"testname2" , age:"26"}] My goal is to extract the names and store them in a variable like this: name = "testname1, testname2"; ...

How to incorporate a JavaScript file into a Handlebars template

I am having trouble receiving calls to my JavaScript file. What could be the issue? Using MVC. Here is the code in view file, file.hbs: <div class="container"> <h2 onClick="test()">Title</h2> {{>list}} </div> <script sr ...

`Is there a way for Javascript to retrieve information sent from Python Flask's render_template() method?`

Issue: I am facing difficulties in retrieving and displaying the data that I send from Javascript code when the user visits the site's landing page. The data in question is a dataframe. Backend Python Code: from flask import Flask, render_template, ...

Locating a record within a database that contains an objectId field linking to a separate collection

I have defined two collections in the following manner const BookSchema = new mongoose.Schema({ title: String, author: { type: mongoose.Object.Types.ObjectId, ref: "author" } }) const BookModel = mongoose.model(" ...

Error: Trying to use Router without providing a middleware function. Please make sure to pass a valid middleware function while using Router

While working on my express application with MongoJS, I encountered an issue where despite returning a function, it was showing that an object has been returned instead. To address this, I made sure to include module.exports=router in my JavaScript file. H ...

Challenges related to streaming processes and uploading to S3 cloud storage

Encountering difficulties with a zero byte stream. Currently, I am resizing an image and sending it as a stream to S3. Initially, when I connect the output to the response, it displays properly. // To retrieve the file remotely var request = http.get(&apo ...

tips for utilizing the expectedExceptionsMessageRegExp within a test case

I am currently looking to implement assert exception type and message in TestNG @test. My requirement is to pass the expected message from an external data source, but it seems challenging to pass it as a parameter with @test. Here is what I have tried us ...

Tips for positioning the footer in HTML and CSS

footer { background-color: #000000 } .footer-nav { list-style: none; } .footer-nav li { display: inline-block; margin: 15px; font-weight: 400; font-size: 80% } .social { list-style: none; } .social li { display ...

Using TypeScript to define a generic type for the key in a React select component

Check out this component that wraps a Material UI select: return ( <Box display="flex" justifyContent={justifyContent}> <SortWrapper> <InputLabel htmlFor={id} shrink={true} > Sort by </InputLabel& ...