Coder Social home page Coder Social logo

Comments (8)

jjschwarz avatar jjschwarz commented on June 3, 2024

Also confirmed this on an OS X box running the latest build of 10.8, which is also PHP 5.3.15

from tweetledee.

chrissimpkins avatar chrissimpkins commented on June 3, 2024

Thanks for the report Jason.

Issue 1 (userrss.php) : I don't have a Mac OSX server box to test on. Do you mind trying to change the PHP tags from this form:

<?= $variable; ?>

to this form:

<?php echo $variable; ?>

Let's try that as a first step to see if the Mac OSX server doesn't like the short form of the PHP tags for some reason.

Issue 2 (userrss.php - CLI) : This looks like a bug. It is originating from the line 👍

$thequery = $_SERVER['PHP_SELF'] .'?'. urlencode($_SERVER['QUERY_STRING']);

and the query string is not defined when you use it from a terminal. Thanks for pointing this out. I will incorporate this fix into a bug fix release over the weekend.

from tweetledee.

chrissimpkins avatar chrissimpkins commented on June 3, 2024

Note to self re: Issue 2 Try this fix

if (defined('STDIN')) {
    $thequery = $_SERVER['PHP_SELF'];
}
else {
    $thequery = $_SERVER['PHP_SELF'].'?'.urlencode($_SERVER['QUERY_STRING']);
}

--> ? will eliminate ability to use different queries from the same file in the same RSS reader application because it eliminates the query string from the canonical URL. Could simply add a randomly generated number?

from tweetledee.

jjschwarz avatar jjschwarz commented on June 3, 2024

OK, made both changes in userrss.php mentioned above and it fixed the issue. Did you want to file sent back over to you? Are you planning on patching the next version to include these changes in all of the files?

from tweetledee.

chrissimpkins avatar chrissimpkins commented on June 3, 2024

Excellent, glad to hear that it worked. You are welcome to submit as a pull request and I can merge it in. I will need to update all of the files with these changes so I have a bit of work to do as well.

Thanks much for your help and good luck with it. Let me know if you have any other issues.

from tweetledee.

jjschwarz avatar jjschwarz commented on June 3, 2024

Actually I already made all of the changes for you, so I forked the project, uploaded the changes, and did a pull request for all 5 files.

Jason John Schwarz
[email protected]

On Aug 17, 2013, at 2:52 PM, Chris Simpkins [email protected] wrote:

Excellent, glad to hear that it worked. You are welcome to submit as a pull request and I can merge it in. I will need to update all of the files with these changes so I have a bit of work to do as well.

Thanks much for your help and good luck with it. Let me know if you have any other issues.


Reply to this email directly or view it on GitHub.

from tweetledee.

chrissimpkins avatar chrissimpkins commented on June 3, 2024

Fantastic! Thanks much for your help with this. I will merge them in today

from tweetledee.

chrissimpkins avatar chrissimpkins commented on June 3, 2024

fixes merged into master

from tweetledee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.