Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8724675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:52:47+00:00 2026-06-13T07:52:47+00:00

Taking a look at the following code: $this->input->post(‘title’, FALSE); I have manually disabled XSS

  • 0

Taking a look at the following code:

$this->input->post('title', FALSE);

I have manually disabled XSS filtering.

Now lets see some examples:

<p BAD_ATTR_KEY="BAD_ATTR_VAL">Salam</span>

RETURNS:

<p BAD_ATTR_KEY="BAD_ATTR_VAL">Salam</span>

<p style="color: red;">Salam</span>

RETURNS:

<p  red;">Salam</span>

Any ideas how to disable this behavior so that the site admins will be able to easily assign different inline styles to any element on the page?


UPDATE:

I have enabled global XSS filtering in application/config/config.php because I need it all the time.

I don’t need XSS filtering only when trusted admins are posting their content from back end. For that purpose I have manually disabled XSS filtering as mentioned in my code above. And I think that the manual config should override default config estated at config.php, so there should be no problem with that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:52:48+00:00Added an answer on June 13, 2026 at 7:52 am

    I have found what my problem was according to Asad‘s comment.

    Even now that I had manually disabled XSS filtering using:

    $body = $this->input('body', FALSE);
    

    , that was still being removed because I had enabled XSS filtering in application/config/config.php.

    I don’t really know why it couldn’t be overrided using the second parameter anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please have a look to the following code: <?php $nomeDominio=''; if (isset($_GET['infoDominio'])) { $nomeDominio
After taking a look at this SO question and doing my own research, it
Thanks for taking a look at this. The issue has to do with the
Taking a look at the following question, Real world use of custom .NET attributes
I have the following code that is used to load user images from a
I have been working with the slider and am using the following code: $(function(){
I have the following code : public class TTM { public interface WrapperDLL extends
I'm using JSON.NET 4.5 and following this blog post , trying to get my
Taking a look at my question HERE , I now want to return the
I was taking a look at Star Schema Benchmark and then I was thinking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.