View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
05462 | Bug reports | Survey taking | public | 2011-09-15 19:39 | 2012-03-14 21:08 |
Reporter | Assigned To | c_schmitz | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.91+ | ||||
Fixed in Version | 1.91+ | ||||
Summary | 05462: Survey crashes if the referral URL contains a single quote | ||||
Description | If the referral URL contains a single quotation mark, LimeSurvey does not save the responses from the survey. | ||||
Steps To Reproduce |
| ||||
Additional Information | The save.php contains the refurl variable. There was no escape sequence applied to refurl before writing to the database. Attached patch fixes the issue. Essentially, I included the addslashes() function. | ||||
Tags | No tags attached. | ||||
Attached Files | save_apostrophe.patch (243 bytes)
338c338 < "refurl"=>getenv("HTTP_REFERER")); --- > "refurl"=>getenv("HTTP_REFERER")); 619c619 < $query .= ", '".$_SESSION['refurl']."'"; --- > $query .= ", '".addslashes($_SESSION['refurl'])."'"; | ||||
Bug heat | 2 | ||||
Complete LimeSurvey version number (& build) | 10951 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | mysql 5.5.8 | ||||
Server OS (if known) | Apache | ||||
Webserver software & version (if known) | 2.2.17 | ||||
PHP Version | 5.3.5 | ||||
LimeSurvey: Yii 15c42352 2011-09-16 05:53:35 Details Diff |
Fixed issue 05462: Survey crashes if the referrer URL contains a single quote git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@10994 b72ed6b6-b9f8-46b5-92b4-906544132732 |
Affected Issues 05462 |
|
mod - application/libraries/Save.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-09-15 19:39 |
|
New Issue | |
2011-09-15 19:39 |
|
File Added: save_apostrophe.patch | |
2011-09-16 14:51 | c_schmitz | Assigned To | => c_schmitz |
2011-09-16 14:51 | c_schmitz | Status | new => assigned |
2011-09-16 14:52 | c_schmitz | Note Added: 16285 | |
2011-09-16 14:52 | c_schmitz | Status | assigned => resolved |
2011-09-16 14:52 | c_schmitz | Fixed in Version | => 1.91+ |
2011-09-16 14:52 | c_schmitz | Resolution | open => fixed |
2011-10-08 22:18 | c_schmitz | Status | resolved => closed |
2012-03-14 21:08 | c_schmitz | Changeset attached | => Import 2012-03-09 13:30:34 Yii 15c42352 |