summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qsignaltransition.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-06-08 01:56:58 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-21 00:31:38 (GMT)
commit6827a3aa2bc852152cd3353be9558c683fb3085c (patch)
tree8b56250ed0ab85005463b23385698e935f762c96 /src/corelib/statemachine/qsignaltransition.cpp
parent154823904672bd89255dd647a2fe609f8fbd74b0 (diff)
downloadQt-6827a3aa2bc852152cd3353be9558c683fb3085c.zip
Qt-6827a3aa2bc852152cd3353be9558c683fb3085c.tar.gz
Qt-6827a3aa2bc852152cd3353be9558c683fb3085c.tar.bz2
QUrl stringprep: fix handling of prohibited characters
RFC 3454 says about prohibited characters (section 2, "Preparation Overview"): 3) Prohibit -- Check for any characters that are not allowed in the output. If any are found, return an error. This is described in section 5. In other words, we mustn't simply strip the output of prohibited characters. We must generate an error if they are present. We do that by clearing the data. We already had tests for prohibited output, but they were indistinguishable from being stripped. So instead add some extra characters so that we can tell whether the label was cleared. (cherry-picked from qtbase commit 736a052d93d9c75e51e8f3da733bc8e4a50c39ce) Change-Id: I2d95217c27be5e2d54deed0036cb009e3b7f4886 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/corelib/statemachine/qsignaltransition.cpp')
0 files changed, 0 insertions, 0 deletions