Navigation

Pligg Support

Hello:

I setup a new pligg site using the last version 2.0.2.
When i submit any story from any URl the system say:
URL is invalid or blocked
This happen with every URL , even with the domain which pligg installed on it.
I check that allow URL fopen is on on php.ini.
I try also to disable URL validate from back end, but the problem still exist.
Please advice me.
Thanks

Possible Answers

    Here is the official fix that we will be using in re-packaged 2.0.2 release. https://github.com/Pligg/pligg-cms/commit/69b6d578f7db500cb478fffaed91563f13af7040

    | Posted 62 days ago | Permalink | Hide Replies

    New pattern submitted on github. working any links.

    https://github.com/Pligg/pligg-cms/issues/153#issuecomment-52817193

    | Posted 62 days ago | Permalink | Hide Replies

    Medow, please do a search before submitting a post. There are 2 posts already submitted in the last 2 days about the same subject. We want to try our best to keep issues and solutions grouped together. Thank you!

    http://pligg.com/support/question/cant-submit-in-pligg-2-0-2/#question />
    http://pligg.com/support/question/url-is-invalid-or-blocked/#question

    | Posted 62 days ago | Permalink | Hide Replies

    Thanks, it work perfect right now.

    | Posted 62 days ago | Permalink | Hide Replies

    Between line 195 and 198 submit.php search the pattern and replace it with this :

    $pattern = '/^http?://(([a-z0-9-]+.)+[a-z]{2,6}|d{1,3}.d{1,3}.d{1,3}.d{1,3})(:[0-9]+)?(/?|/S+)$/iu';

    | Posted 63 days ago | Permalink | Hide Replies

    @sergio83

    This pattern is incorrect and not well escaped and does not validate.

    Test it here:

    http://www.phpliveregex.com/ />
    http://regex101.com/

    | Posted 62 days ago | Permalink | Hide Replies

    This pattern allows all links except https..

    | Posted 62 days ago | Permalink | Hide Replies

Who Upvoted this Story

Pligg.com's Support area is where you can ask questions and get answers. Just getting started with the Support area? This section describes tips for participating.

Submitting a Question or Comment

By taking a minute to research previous posts you may receive an answer much faster than waiting for a response to a new question. Begin by searching the support section for an answer. Sometimes you may even want to extend your search to the entire pligg.com domain.

If you are unable to find a relevant answer, submit a new question or comment here. Please provide a detailed description and, when necessary, debugging information such as your server environment (a link to a <?php phypinfo(); ?> .php page would be very helpful), your web browser, and any steps necessary to reproduce your issue.

Submitting an Answer

If you have an answer or useful response that you would like to add to a post, you can submit it as a comment which other users will then vote on. Answers are sorted by most popular to least, allowing the best information to climb to the top of the page.

Please read and vote for existing answers before submitting your own, as there may already be an acceptable answer provided. You can use the "Reply" link found within an answer to submit a response to it, in case you want to expand or comment on someone else's contribution.

Including Files or Code

Sometimes it is necessary for you to attach a file or include a snippet of code for others to reference in your response. In most cases, you can .zip up files and attach them to a question or answer using Pligg's file manager. At times though this may fail, and in these circumstances we recommend using a third party host. Below we are including a list of recommended websites where you can share easily share file uploads (or snippets of code) through the web.