claudehohl / Stikked

An advanced and beautiful pastebin written in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remove_invisible_characters removing legitimate paste content.

fmichea opened this issue · comments

Hi guys,

I installed and started using your pastebin last week, and today we noticed that some legitimate content (example bellow) was removed. I looked in the code and think it's due to remove_invisible_characters[1] removing HTML special charaters pasted in hexadecimal (I think).

Is this a feature? Could it be something wrong in my configuration? Is there a work arround?

Example (C code):

int main(void)
{
    // When pasted, only "s" remains as the format string.
    printf("%12s", "I am a string");
    return 0;
}

I am sorry if it is not the right place for this. Thank you in advance.

[1] https://github.com/claudehohl/Stikked/blob/master/htdocs/system/core/Common.php#L514

Indeed, a nasty "bug". Thanks to the fact that codeigniter allows us to replace core libs within our application (http://codeigniter.com/user_guide/general/core_classes.html), I could comment that replacement out. Makes no sense for codesharing pastebins.

Here's your new paste: http://paste.scratchbook.ch/view/ef230571

And of course, the corresponding commit: ef1d6ed

Just put the Input.php into application/core/

test it with CI 3.0

tested with ci 3, works.