June PHP-Scripts Blog Archives

How to fix reBlog 2.0b2 URL sanitizing bug

Behavior: Links in Reblog cannot be ‘archived’ or ‘published’
Problem: Reblog wasn’t sanitizing the ‘link’ field in the MySQL table properly, allowing injection of unescaped single quotes (’) from RSS feeds into the database. The query would fail and thus would never process properly.
File: Controller.class.php in /refeed/library/RF
Version: $Revision: 1.40 (reBlog version 2.0b2)
Status: Bug reported with code […]

Dealing with the browser buttons in AJAX

Developing PHP the AJAX Way [article]:
A major challenge of Asynchronous JavaScript and XML (Ajax)-driven Web sites is the lack of a Back button. We will use JavaScript to create a history stack for the Ajax photo gallery
Good article on how to deal with the browser Back, Forward and Reload button.