History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-1270
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: P0 P0
Assignee: Mark Davis
Reporter: Oliver Steele
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

OpenLaszlo Explorer and Laszlo in Ten Minutes allow users to save to file system

Created: 23/Dec/05 01:37 PM   Updated: 11/Jul/06 02:19 AM
Component/s: SA - Laszlo Explorer
Affects Version/s: None
Fix Version/s: 3.3.3

Time Tracking:
Not Specified

Severity: Major
Fixed in Change#: 43,572
Runtime: N/A


 Description  « Hide
The forms hide the button, but not the handler.

The fix is to change the "save as" case (in BOTH COPIES of source.jsp) to something like the following:
        } else if (formAction != null && formAction.startsWith(saveAsLabel)) {
            if (request.getRemoteAddr().equals("127.0.0.1")) {
                response.addHeader("Content-Type","application/octet-strem");
                response.addHeader("Content-Disposition","attachment; filename=\"" +
                                   request.getParameter("saveasfile") + "\"");
                out.write(sourceCode);
            } else {
                // Don't bother with an error. We should only get here
                // if someone is spoofing us.
            }
            return;


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Henry Minsky - 10/Jul/06 08:10 PM
fixed by change in legals #1283

Jim Grandy - 10/Jul/06 08:24 PM
Reopening to integrate into lps-3.3

Jim Grandy - 11/Jul/06 02:19 AM
Fix integrated from svn openlaszlo/branches/legals in change 43572